#P134. 练22.3 爱你爱你
练22.3 爱你爱你
Description
2020, a beautiful year, because "2020" sounds like "love you love you" in Chinese. May students receive lots of love in the new year! The observant Claire also noticed that 2020 is a once-in-a-century year: its first two digits are identical to its last two digits. The next such year will be 2121, 101 years later! In this beautiful and perfect year, may all contestants seize the day and live up to their youth. Given a 4-digit year, determine if it is also a year where the first two digits are identical to the last two digits.
Input Format
A 4-digit integer year () representing the year.
Output Format
If it is a year where the first two digits are identical to the last two digits, output "YES";
otherwise, output "NO".
Sample
2020YES
Related
In following homework: