import std.algorithm,
       std.string,
       std.array,
       std.range,
       std.stdio,
       std.conv;

void main() {
  string[] n = readln.chomp.split("");

  if (n[0] == n[2]) {
    writeln("Yes");
  } else {
    writeln("No");
  }
}
