Automated Telephone Exchange#2370

Automated Telephone Exchange

1 секунда
128 мегабајтова
Врло лако

In London, phone numbers have the format "XXX-XX-XX", where the first three digits represent the index of the Automated Telephone Exchange (ATE). Each ATE has exactly unique phone numbers.

Peter has just bought a new flat and wants to install a telephone line. He considers a phone number lucky if the value of the arithmetic expression it represents is zero. For example, the phone number 102-40-62 is lucky (102 - 40 - 62 = 0), while 157-10-47 is not lucky (157 - 10 - 47 = 100 \neq 0).

Peter knows the index of the ATE serving his house. He wants to calculate how many lucky numbers his ATE can have.

Улаз

A single integer — the index of Peter's ATE (100 \le n \le 999).

Излаз

A single integer — the number of lucky phone numbers Peter's ATE has.

Примери

Пример 1

Loading
Loading