Palindromic Number

Xem dạng PDF

Gửi bài giải

Điểm: 1,00 (OI)
Giới hạn thời gian: 1.0s
Giới hạn bộ nhớ: 256M
Input: stdin
Output: stdout

Dạng bài
Ngôn ngữ cho phép
C, C++, Java, Kotlin, Pascal, PyPy, Python, Scratch, TEXT

Palindromic Number

A palindromic number is a number that remains the same when its digits are reversed.

Given an integer N, determine whether N is a palindromic number.

Input

The input contains a single integer N.

N <= 10^9

Output

Output YES if N is a palindromic number.

Otherwise, output NO.

Example 1

Input
131
Output
YES

Example 2

Input
1321
Output
NO

Bình luận

Hãy đọc nội quy trước khi bình luận.


Không có bình luận tại thời điểm này.