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\texttt{Yes} if it is a palindrome, otherwise No\texttt{No}.

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

Input

The input will contain a string SS (0<Length of S<1000 < \texttt{Length of S} < 100).

SS will contain lowercase alphabets only.

Output

Print Yes\texttt{Yes} or No\texttt{No}.

Samples

InputOutput
racecar
Yes
InputOutput
carrot
No

Discussion

Statistics


93% Solution Ratio

raselrokyEarliest, Nov '18

crevious509Fastest, 0.0s

CCS_RUSHIKONLightest, 0 B

saitotaShortest, 31B

Submit

Login to submit

Toph uses cookies. By continuing you agree to our Cookie Policy.