Олимпиадный тренинг

Задача 32939. Conditioning - 8


Write a program that prints 1 if the given statement is true and 0 otherwise.

The sum of the first two digits of a given four-digit number is equal to the sum of its last two digits

EXAMPLE:
input: 1234
output: 0

EXAMPLE:
input: 1221
output: 1