Determine if a four-digit number is symmetric (i.e., reads the same forward and backward). Pad with leading zeroes if necessary. Output 1 if symmetric, otherwise any other number.
A four-digit number.
Print 1 if symmetric, otherwise another integer.
Input #1
2002
Output #1
1
Input #2
2008
Output #2
37
Sign in to submit your solution and save your progress.