import java.util.Scanner;
class Main {
Scanner scanner
= new Scanner
(System.
in); String s
= scanner.
nextLine(); System.
out.
print(isPalindrome
(s
) ? "Yes" : "No");
}
public static boolean isPalindrome
(String text
) { text = text.replaceAll(" ","");
return text.equals(new StringBuilder(text)
.reverse().toString());
}
}
CmltcG9ydCBqYXZhLnV0aWwuU2Nhbm5lcjsKCgpjbGFzcyBNYWluIHsKCQoJcHVibGljIHN0YXRpYyB2b2lkIG1haW4gKFN0cmluZ1tdIGFyZ3MpIHRocm93cyBqYXZhLmxhbmcuRXhjZXB0aW9uIHsKCQkKCQlTY2FubmVyIHNjYW5uZXIgPSBuZXcgU2Nhbm5lcihTeXN0ZW0uaW4pOwogICAgICAgIFN0cmluZyBzID0gc2Nhbm5lci5uZXh0TGluZSgpOwogICAgICAgIFN5c3RlbS5vdXQucHJpbnQoaXNQYWxpbmRyb21lKHMpID8gIlllcyIgOiAiTm8iKTsKCQkKCX0KCQoJcHVibGljIHN0YXRpYyBib29sZWFuIGlzUGFsaW5kcm9tZShTdHJpbmcgdGV4dCkgewoJCXRleHQgPSB0ZXh0LnJlcGxhY2VBbGwoIiAiLCIiKTsKCQlyZXR1cm4gdGV4dC5lcXVhbHMobmV3IFN0cmluZ0J1aWxkZXIodGV4dCkKICAgICAgICAgICAgICAgLnJldmVyc2UoKS50b1N0cmluZygpKTsKICAgICAgICAgICAgICAgfQp9