~/algor $ cat problems/algor-bot-va-xabarlar
ALGOR Bot and messages
A Telegram bot has to send a text of $N$ characters. One message holds at most $K$ characters, so the bot splits the text into consecutive messages: each message has exactly $K$ characters, and only the last one has the remaining characters (from $1$ to $K$). For example, with $N = 10$, $K = 3$, $4$ messages are sent and the last has $1$ character; with $N = 15$, $K = 5$, $3$ messages are sent and the last has $5$ characters. Find how many messages the bot sends in total and how many characters the last message has.
Input
One line with two positive integers: $N$ and $K$.
Output
One line with two integers: the number of messages $p$ and the number of characters in the last message $r$.
Note
$1 \le N \le 10^{18}$
$1 \le K \le 10^{9}$
Examples
10 3
4 1
15 5
3 5