Under construction

Still being built. Things may change

Same Numbers

Time limit2sMemory limit1024 MB

Summary
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.

Examples2

  1. Example 1

    Input
    22
    
    Expected output
    1
    
  2. Example 2

    Input
    10
    
    Expected output
    0