Preparando MOJI

Again?

1000ms 262144K

Description:

Input:

The only line of the input contains a 7-digit hexadecimal number. The first "digit" of the number is letter A, the rest of the "digits" are decimal digits 0-9.

Output:

Output a single integer.

Sample Input:

A278832

Sample Output:

0

Sample Input:

A089956

Sample Output:

0

Sample Input:

A089957

Sample Output:

1

Sample Input:

A144045

Sample Output:

1

Informação

Codeforces

Provedor Codeforces

Código CF1331D

Tags

*specialimplementation

Submetido 0

BOUA! 0

Taxa de BOUA's 0%

Datas 09/05/2023 10:00:40

Relacionados

Nada ainda