#MTHA0000006. Chuyến xe cuối (The Last Bus Trip)

Chuyến xe cuối (The Last Bus Trip)

The Last Bus Trip

Version: Phuoc Hung OJ Extended

Problem Statement

There are NN students to transport using a vehicle with capacity KK. Every trip before the last carries KK students whenever at least KK students remain. Determine the minimum number of trips and the number of students on the last trip.

Input

One line contains two positive integers NN and KK.

Output

Print two integers: the minimum number of trips and the number of students on the last trip.

Subtasks

  • Subtask 1 (30 points):
    • 1≤N≤1061 \le N \le 10^6.
    • 1≤K≤1061 \le K \le 10^6.
  • Subtask 2 (70 points):
    • 1≤N≤10181 \le N \le 10^{18}.
    • 1≤K≤10181 \le K \le 10^{18}.

Examples

Example 1

Input

23 8

Output

3 7

Explanation

The first two trips carry 1616 students, leaving 77 for the last trip, for 33 trips in total.

Example 2

Input

40 10

Output

4 10

Explanation

4040 is divisible by 1010, so there are 44 trips and the last trip still carries 1010 students.

Example 3

Input

1 50

Output

1 1

Explanation

There is only one student, so exactly one trip is needed and it carries 11 student.