THE EASY CODE
Statement
for the given integer,
1) separate the number into individual digits.
2) flip the digits upside down and remove all the digits which does not form a number after flipping, (you need to figure out the numbers by yourself, as this is not a straightforward question).
3) join those individual numbers and form a single number(i.e. a single integer).
4) divide the number by 2 and find whether the obtained number is a palindrome or not
5) if it is not a palindrome then print 'NaH' else print 'YeAh'
Input description
a single integer.
Output description
read the statement for output description
Constraints
no constraints
Game modes
Fastest, Shortest
Test cases
7 Test
Input
36874
Output
NaH
6 Validator
Input
658130
Output
NaH
5 Test
Input
2582436
Output
NaH
4 Validator
Input
516
Output
YeAh
3 Test
Input
-867
Output
YeAh
2 Validator
Input
681
Output
NaH
1 Test
Input
-8849
Output
NaH
0 Validator
Input
6384103
Output
NaH
Solution language
Solution
Stub generator input