import Glibc
extension String: CollectionType {}

//var nm = readLine()!.split(" ").map { Int($0)! }
var n = readLine()!
if n == String(n.characters.reverse()) {
  print("Yes")
} else {
  print("No")
}