Miss Burger has three positive integers $$$n$$$, $$$a$$$, and $$$b$$$. She wants to find a positive integer solution $$$x$$$ $$$(1\leq x\leq n-1)$$$ that satisfies the following two conditions:
Note that $$$ \left \lfloor x\right \rfloor $$$ represents the largest integer not exceeding $$$x$$$, such as $$$ \left \lfloor 0.5\right \rfloor =0$$$, $$$ \left \lfloor 11.3\right \rfloor =11$$$, $$$ \left \lfloor 101.9\right \rfloor =101$$$, $$$ \left \lfloor 99\right \rfloor =99$$$, $$$ \left \lfloor 0\right \rfloor =0$$$, $$$ \left \lfloor 2\right \rfloor =2$$$.
The first line contains a single integer $$$n$$$ ($$$3 \le n \le {10}^{100}-1$$$).
The second line contains a single integer $$$a$$$ ($$$1 \le a \le n-1$$$).
The third line contains a single integer $$$b$$$ ($$$1 \le b \le n-1$$$).
Output a single integer denoting the solution $$$x$$$.
9 4 3
7
650849 253233 5059
359895
29268658540371639122046169677605538931 22216978925831646928504047924228222624 9226521123963832612770162
28025732380501848167087889769592298758
| Название |
|---|


