Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Main {
- public static void main(String[] args) {
- Scanner scan = new Scanner(System.in);
- String x = scan.next();
- x = x.replaceAll("[aeyuio]", "");
- if (x.equals(new StringBuilder(x).reverse().toString())) {System.out.print("YES");
- }else{ System.out.print("NO");}
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement