Carlitos "Curious" Nunes is visiting the Luxor Museum with his parents. He is fond of games, and has read about ancient Egyptian games like Senet. Unfortunately, Carlitos did not found this game on Luxor. However, he found a papyrus that tells a myth about the end of the world. For him, this myth seemed like a funny game.
When the pyramid of Giza was finished, the main priest collected $$$100$$$ precious stones of different colors. In each of the following years, during the Wepet-Renpet Festival, the priest carried out the following ritual:
As a curious kid, Carlitos was thinking about how many years the world will last, if this ritual started today. Moreover, he wanted to calculate this for different numbers of stones. Since you are an experience programmer, Carlitos asked you to write a program that calculates this number. He wants to check whether his calculations are correct.
A single line containing an integer $$$N$$$ ($$$1 \leq N \leq 5 \cdot 10^5$$$), indicating the number of stones.
An integer, the number of years the world will last. Since this number can be huge, print it mod $$$10^9 + 7$$$.
10
571911986