In St Petersburg, phone numbers are written in the format "XXX–XX–XX", where the first three digits (XXX) are the index of the Automated Telephone Exchange (ATE) that serves the number. Each ATE owns exactly 10000 phone numbers: grouping the last four digits as XX–XX, they range over every value from 00–00 to 99–99.
Peter has just bought a new flat and wants to install a telephone line. He calls a phone number lucky if the arithmetic expression obtained by reading it as XXX − XX − XX equals zero. For example, 102–40–62 is lucky because 102 − 40 − 62 = 0, while 157–10–47 is not lucky because 157 − 10 − 47 = 100 ≠ 0.
Peter knows the index of the ATE that serves his house. To estimate his chances of getting a lucky number, he wants to know how many lucky numbers his ATE has.
A single integer n — the index of Peter's ATE (100 ≤ n ≤ 999).
Output a single integer — the number of lucky phone numbers that Peter's ATE has.