Practice on Toph

Participate in exhilarating programming contests, solve unique algorithm and data structure challenges and be a part of an awesome community.

Is Palindrome

Limits 1s, 512 MB

Given a word, print “Yes” if it is a palindrome, otherwise “No”.

A palindrome is a word which reads the same backward as forward, e.g. racecar.

Input

The input will contain a string S (Length of S < 100).

S will contain lowercase alphabets only.

Output

Print “Yes” or “No”.

Samples

InputOutput
racecar
Yes
InputOutput
carrot
No

Discussion

Statistics


91% Solution Ratio

raselrokyEarliest, Nov '18

crevious509Fastest, 0.0s

CCS_RUSHIKONLightest, 0 B

saitotaShortest, 31B

Submit

Login to submit

Related Contests

BRACU Intra Programming Contest Fall 2019 (Junior) Ended at 2019-11-29 07:30:00 +0000 UTC