favorite We need a little bit of your help to keep things running, click on this banner to learn more

Week 1: November 2 – 8. Introduction to C language. Part 1

Stepan Friends

Stepan returned from International Olympiad in Informatics (IOI) and brought with him n colored stones as souvenirs. Stepan is not a greedy boy, so he decided to share stones with his friends. Stepan gave to each friend exactly one stone. It turned out that Stepan has now also only one stone. Determine how many friends has Stepan.


One number n (1n100).


Print the number of Stepan's friends.


Stepan brought 2 stones, one of which he left for himself. So the second stone he gave to his one friend.

Time limit 1 second
Memory limit 122.17 MiB
Input example #1
Output example #1
Source 2015 ACM-ICPC Ukraine, Первый этап Украина, 25 апреля