def checkPalindrome(str)
  strArray = str.split(//)
  (strArray.size / 2).times do
    return false    if  strArray.shift != strArray.pop
  end
  return true
end

while input = gets
  if  checkPalindrome(input.chomp)
    puts "YES"
  else
    puts "NO"
  end
end