시간 제한메모리 제한제출정답맞힌 사람정답 비율
2 초 (추가 시간 없음) 512 MB112332928.155%

문제

Boris is making a quest for his sister Berta. One of the tasks is to find a point on the map that is $n$ meters to the north from their house. But it's too easy if $n$ is specified directly. Boris decided to use miles and cables to specify the distance.

He found out that there are a lot of different miles: from a $500$-meter Chinese mile (called li) up to a $11\,299$-meter Norwegian mile (called mil). And a cable length can be anywhere from $169$ to $220$ meters.

Boris decided to use an $m$-meter mile and a $c$-meter cable. Now he wants to represent the $n$-meter distance as "$M$ miles and $C$ cables" with non-negative integers $M$ and $C$ as precisely as possible --- that is, he wants to minimize $|M\cdot m+C\cdot c-n|$. Help him!

입력

Three lines contain an integer each: $n$ --- the distance to represent, $m$ --- the chosen length of a mile, and $c$ --- the chosen length of a cable ($1 \le n \le 10^9$; $500 \le m \le 11\,299$; $169 \le c \le 220$). All values are given in meters.

출력

Print two non-negative integers $M$ and $C$ --- the best approximation for the distance of $n$ meters using the chosen mile and cable lengths. If there are multiple best approximations, print any of them.

예제 입력 1

1234
500
169

예제 출력 1

0 7

예제 입력 2

1700
500
200

예제 출력 2

1 6

힌트

There are two correct answers to the second example test: "1 6" and "3 1".