Preparando MOJI
Let's call the set of positive integers $$$S$$$ correct if the following two conditions are met:
For the given values $$$n$$$, $$$x$$$, and $$$y$$$, you have to find the maximum size of the correct set.
A single line contains three integers $$$n$$$, $$$x$$$ and $$$y$$$ ($$$1 \le n \le 10^9$$$; $$$1 \le x, y \le 22$$$).
Print one integer — the maximum size of the correct set.
10 2 5
5
21 4 6
9
1337 7 7
672
455678451 22 17
221997195