Same Numbers
Time limit2sMemory limit1024 MB
Given a two-digit integer N, the task is to print 1 if its tens and ones digits are equal, otherwise print 0.
- Level
Easy1 of 10
- Topics
- Math, Implementation
- Solved
- No attempts yet
Problem
You are given a two-digit integer N in decimal. Print 1 if the tens digit and the ones digit of N are the same. Otherwise, print 0.
Input
Input is given from Standard Input in the following format.
N
Output
Print 1 if the tens digit and the ones digit of N are the same. Otherwise, print 0.
Constraints
10 ≦ N ≦ 99. N is an integer.