s="abbbcddd" if s==s[::-1]: print("YES") else: print("NO")