Ren has recently created a website, Ternary Search, which he intends on turning into the premier platform for competitive programmers to talk about anything.
In order to facilitate conversation between different users, Ren is working on a new feature called "friends". The feature will allow two distinct users to be friends. Ren is working on a prototype of this feature right now, so at present, all users are friends with Ren, and these are the only friendships present on the platform.
Including Ren, there are
Constraints
Input Specification
The first line contains a single positive integer
Output Specification
Output
Sample Input
3
1
10
100
Sample Output
0
9
99
Comments
Use the magic of friendship~
Gets every test case right except the last one :(
Think about how many friendships Ren will have