import string

def is_palindrome(s):
  
    cleaned = ''.join(char.lower() for char in s if char.isalnum())
    return cleaned == cleaned[::-1]


s = input("Enter a string: ")

if is_palindrome(s):
    print("YES")
else:
    print("NO")