Palindrome Check

EasyGrade 12

Read a lowercase word and determine whether it reads the same forwards and backwards.

Input / Output

Input: a single lowercase word. Output: "Yes" if it's a palindrome, "No" otherwise.

Examples

Input

racecar

Expected Output

Yes

Input

hello

Expected Output

No

+ 2 hidden tests checked on Submit.

Files

Main.java is the entry point. Add extra classes for OOP exercises — they compile together.

Main.java
Loading...

Run your code to see test results here.