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

Задача 32943. Conditioning - 5


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

this four-digit number reads the same from left to right and right to left

EXAMPLE:
input: 1221
output: 1

EXAMPLE:
input: 2727
output: 0