Palindromic String
Practice
4 (2539 votes)
Easy
Problem
77% Success 360424 Attempts 10 Points 1s Time Limit 256MB Memory 1024 KB Max Code
You have been given a String S. You need to find and print whether this string is a palindrome or not. If yes, print "YES" (without quotes), else print "NO" (without quotes).
Input Format
The first and only line of input contains the String S. The String shall consist of lowercase English alphabets only.
Output Format
Print the required answer on a single line.
Constraints \( 1 \le |S| \le 100 \)
Note
String S consists of lowercase English Alphabets only.
Submissions
Please login to view your submissions
Similar Problems
Points:10
2383 votes
Tags:
Easy
Points:10
1585 votes
Tags:
Easy
Points:10
750 votes
Tags:
Basic ProgrammingEasyInput/Output
Editorial