Automated Telephone Exchange | 프로그래밍의 벗 PivotOJ
PivotOJ

Automated Telephone Exchange

시간 제한: 1000ms메모리 제한: 128MB출처: NEERC Northern Subregional 2011BOJ 3507

문제

In St Petersburg phone numbers are formatted as “XXX–XX–XX”, where the first three digits represent index of the Automated Telephone Exchange (ATE). Each ATE has exactly 10 000 unique phone numbers.

Peter has just bought a new flat and now he wants to install a telephone line. He thinks that a phone number is lucky if the arithmetic expression represented by that phone number is equal to zero. For example, the phone number 102–40–62 is lucky (102 − 40 − 62 = 0), and the number 157–10–47 is not lucky (157 − 10 − 47 = 100 ≠ 0).

Peter knows the index of the ATE that serves his house. To get an idea of his chances to get a lucky number he wants to know how many lucky numbers his ATE has.

입력

The input file contains a single integer number n — the index of Peter’s ATE (100 ≤ n ≤ 999).

출력

Output a single integer number — the number of lucky phone numbers Peter’s ATE has.

예제

예제 1

입력
196
출력
3

예제 2

입력
239
출력
0
이 문제는 채점 준비 중입니다. 테스트 데이터가 확보되면 제출이 가능합니다.