#MTHA0000008. Trang và vị trí (Page and Position)

Trang và vị trí (Page and Position)

Page and Position

Version: Phuoc Hung OJ Extended

Problem Statement

A list has NN items numbered from 11 to NN. Each page contains at most KK consecutive items. Given position PP, determine the page containing item PP and the position of that item within the page. Both indices start at 11.

Input

One line contains three positive integers NN, KK, and PP.

Output

Print two integers: the page number containing item PP and its position within that page.

Subtasks

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

Examples

Example 1

Input

100 12 37

Output

4 1

Explanation

The first three pages contain 3636 items; item 3737 is the first item on page 44.

Example 2

Input

50 10 50

Output

5 10

Explanation

With 1010 items per page, item 5050 is on page 55 at position 1010.

Example 3

Input

7 20 6

Output

1 6

Explanation

Because K=20>N=7K=20>N=7, the whole list fits on page 11, and item 66 is at position 66.