| SCPC Teens 2025 |
|---|
| Finished |
Ahmad is very tired, so he decided to play Minecraft with his friend Apraham.
As soon as he entered the game, a guy named Steve gave him $$$2$$$ fully grown rabbits and disappeared.
Apraham, curious about how rabbits live in this world, made some observations:
Ahmad and Apraham now want to crash the server with these super cute rabbits UWU HeHe..
Today Ahmad has $$$2$$$ fully grown rabbits and he is so curious about how many rabbits will he have after n days.
As i said Ahmad is STILL tired so this mission is yours obviously :)
Since the final answer could be astronomically large, please output the result modulo $$$10^9+7$$$ .
Will you go down the rabbit hole?
The only line contains three integers $$$n,X,Y \: (1 \le n\le 10^{18})$$$ $$$(1\le X,Y\le 1000)$$$
Print a single integer , the number of rabbits Ahmad has after $$$n$$$ days mod $$$10^9+7$$$
2 2 3
10
20 2 3
8018
1000 4 5
641939610
in the first test case:
after two days Ahmad will get extra 8 rabbits so 2+8=10
| Name |
|---|


