#MTHA0000014. Thời điểm tín hiệu kế tiếp (Next Signal Time)

Thời điểm tín hiệu kế tiếp (Next Signal Time)

Next Signal Time

Version: Phuoc Hung OJ Extended

Problem Statement

A signal first turns on at time AA and then every KK time units, at times A,A+K,A+2K,…A,A+K,A+2K,\ldots. Given T≥AT\ge A, find the earliest signal time not smaller than TT and the waiting time from TT to that signal.

Input

One line contains three positive integers AA, KK, and TT.

Output

Print two integers: the earliest signal time not smaller than TT and the corresponding waiting time.

Subtasks

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

Examples

Example 1

Input

4 6 17

Output

22 5

Explanation

The signal times around 1717 are 1616 and 2222. The first one not smaller than 1717 is 2222, so the wait is 22−17=522-17=5.

Example 2

Input

10 5 25

Output

25 0

Explanation

25=10+3⋅525=10+3\cdot5 is exactly a signal time, so the earliest signal not smaller than 2525 is 2525 itself and the wait is 00.

Example 3

Input

1 100 2

Output

101 99

Explanation

After time 11, the next signal is at 101101. Since 22 lies between them, the answer is 101101 with a wait of 9999.