#P268. 【例44.3】 内码对称

【例44.3】 内码对称

Description

In C++, an int type integer's internal code is a 32-bit 0101 sequence. Some of these 0101 sequences are symmetric, while others are not.
For a given integer, we need to determine whether its internal code is symmetric in certain situations.

Input Format

A single line containing an integer nn.

Output Format

If the internal code of nn is symmetric, output "YES"; otherwise, output "NO".

Sample

2147483646
YES