101981: [AtCoder]ABC198 B - Palindrome with leading zeros

Memory Limit:256 MB Time Limit:2 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

Score : $200$ points

Problem Statement

Given is an integer $N$.

Is it possible to add zero or more 0s at the beginning of the string representing $N$ in base ten to get a palindrome?

Constraints

  • $0 \leq N \leq 10^9$

Input

Input is given from Standard Input in the following format:

$N$

Output

If a palindrome can be made, print Yes; otherwise, print No.


Sample Input 1

1210

Sample Output 1

Yes

Adding one 0 at the beginning of 1210 results in 01210, a palindrome.


Sample Input 2

777

Sample Output 2

Yes

777 is already a palindrome.


Sample Input 3

123456789

Sample Output 3

No

Input

题意翻译

给定一个整数n。是否可以在n的前面添加多个0,使得n变成回文数? 是输出"Yes",否则输出"No"。(如果n本来就为回文数输出Yes)

加入题单

算法标签: