AtCoder Inc. sells [glasses](https://suzuri.jp/AtCoder/5510290/water-glass/m/clear) and [mugs](https://suzuri.jp/AtCoder/5510290/mug/m/white).
Takahashi has a glass with a capacity of $G$ milliliters and a mug with a capacity of $M$ milliliters.
Here, $G<M$.
Initially, both the glass and the mug are empty.
After performing the following operation $K$ times, determine how many milliliters of water are in the glass and the mug, respectively.
* When the glass is filled with water, that is, the glass contains exactly $G$ milliliters of water, discard all the water from the glass.
* Otherwise, if the mug is empty, fill the mug with water.
* Otherwise, transfer water from the mug to the glass until the mug is empty or the glass is filled with water.
## Constraints
* $1\leq K\leq 100$
* $1\leq G<M\leq 1000$
* $G$, $M$, and $K$ are integers.
## Input
The input is given from Standard Input in the following format:
$K$ $G$ $M$
[samples]