Carol has been scammed!
You, as Carol's dear friend, seek justice against this scammer. To do so, you devise a master plan - you will write Medium articles to get attention from the press. However, this is no simple process. Each Medium article you write will receive fewer claps than the previous article, and you must achieve a total of at least
Your first article receives
Constraints
Input Specification
The first line will contain
The following line will contain
Output Specification
If it's not possible to obtain justice, output RIP
.
Otherwise, output the number of articles it will take (excluding the cease and desist article) to obtain justice.
Sample Input 1
1000
400 200
Sample Output 1
2
Sample Input 2
1000
300 20
Sample Output 2
2
Comments
LOL