All problems

Palindrome Check

easyPythonStrings

A word-game studio is building a daily puzzle and wants to mark the entries that read the same in both directions — words like racecar. The checker takes one word at a time and gives a straight verdict.

Task: Read one word and report whether it reads the same forwards and backwards.

Input

A single line holding a string s of 1 to 100 characters. The characters are lowercase letters, with no spaces and no punctuation.

Output

One line holding exactly Yes if the word reads the same in both directions, or exactly No if it does not. Capital first letter, nothing else.

Example:

Input:
racecar

Output:
Yes

Sign in to solve this problem

Reading problems is free for everyone — solving them (Run, Submit, and tracking what you've solved) needs an account.

Sign in

Discussion

Sign in to join the discussion — reading is open to everyone.

Loading comments…