100 atcoder#ABC237C. [ABC237C] kasaka
[ABC237C] kasaka
Score : points
Problem Statement
Given is a string consisting of lowercase English letters.
Determine whether adding some number of a's (possibly zero) at the beginning of can make it a palindrome.
Here, a string of length , , is said to be a palindrome when for every .
Constraints
- consists of lowercase English letters.
Input
Input is given from Standard Input in the following format:
Output
If adding some number of a's (possibly zero) at the beginning of can make it a palindrome, print Yes; otherwise, print No.
kasaka
Yes
By adding one a at the beginning of kasaka, we have akasaka, which is a palindrome, so Yes should be printed.
atcoder
No
Adding any number of a's at the beginning of atcoder does not make it a palindrome.
php
Yes
php itself is a palindrome. Adding zero a's at the beginning of is allowed, so Yes should be printed.