Untitled

mail@pastecode.io avatar
unknown
plain_text
3 years ago
456 B
0
Indexable
Never
/**
 * 
 */
package LuyenCode;

import java.util.Scanner;

/**
 * @author Linh Tran Bao
 * @since Jul 19, 2021
 */
public class Main {

		public static void main(String[] args) {
			Scanner sc = new Scanner(System.in); 
			

			while(sc.hasNextLine()) {  
				String str = sc.nextLine();
				if(str.charAt(0) == str.charAt(str.length()-1)) 
					System.out.println("YES");
				else 
					System.out.println("NO");
			} 
		}  
}