Type: Default 1000ms 64MiB

练8.5 幸运数

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

Description

Student A believes that their lucky number is the largest non-negative integer not exceeding NN that is divisible by KK. Can you help them calculate their lucky number?

Input Format

Input consists of a single line with two integers NN and KK (1N,K2×1091 \le N, K \le 2 \times 10^9).

Output Format

Output a single line with an integer representing the lucky number.

Sample

3 2
2

20251025A班作业(4)

Not Claimed
Status
Done
Problem
8
Open Since
2025-10-25 0:00
Deadline
2025-11-2 23:59
Extension
24 hour(s)