2017-02-12 00:31:12 -08:00
|
|
|
// Author: Rodney Shaghoulian
|
2018-07-27 16:45:56 -07:00
|
|
|
// Github: github.com/RodneyShag
|
|
|
|
|
// HackerRank: hackerrank.com/RodneyShag
|
2017-02-12 00:31:12 -08:00
|
|
|
|
2017-02-07 01:14:49 -08:00
|
|
|
import java.util.Scanner;
|
|
|
|
|
|
|
|
|
|
/* If a String is equivalent to itself when reversed, it's a palindrome */
|
|
|
|
|
public class Solution {
|
|
|
|
|
public static void main(String[] args) {
|
|
|
|
|
/* Read input */
|
|
|
|
|
Scanner scan = new Scanner(System.in);
|
|
|
|
|
String str = scan.nextLine();
|
|
|
|
|
scan.close();
|
|
|
|
|
|
|
|
|
|
/* Reverse string and compare to original */
|
|
|
|
|
String reversed = new StringBuilder(str).reverse().toString();
|
|
|
|
|
System.out.println(str.equals(reversed) ? "Yes" : "No");
|
|
|
|
|
}
|
|
|
|
|
}
|