Type: Default 1000ms 64MiB

练22.3  爱你爱你

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

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 (999<year<10000999 < year < 10000) 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

2020
YES

20251213 A班作业(10)

Not Claimed
Status
Done
Problem
10
Open Since
2025-12-13 0:00
Deadline
2025-12-21 23:59
Extension
24 hour(s)