text: import sys
  import math
  from collections import defaultdict, deque
  
  sys.setrecursionlimit(10 ** 6)
  stdin = sys.stdin
  
  INF = float('inf')
  
  ni = lambda: int(ns())
  na = lambda: list(map(int, stdin.readline().split()))
  ns = lambda: stdin.readline().strip()
  
  S = ns()
  print("YES") if S == S[::-1] else print("NO")