In one of the problems on the site, the condition says: “If the given four-digit number is symmetric, output 1, otherwise output any other integer.” A pupil believes they solved the problem, but the system rejects it. They think it’s because they returned a different “any other number” than the expected one. Write a program that compares the system’s expected output and the student’s answer, and checks if the solution is correct.
The program receives two numbers as input: the system’s answer and the pupil’s answer.
Output "YES" if the pupil’s answer is correct according to the system, otherwise output "NO".
Input #1
11 -1
Output #1
YES
Input #2
3 1
Output #2
NO
Sign in to submit your solution and save your progress.