Advertisement
vov44k

Untitled

Apr 25th, 2022
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.35 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class Main {
  4.  
  5.     public static void main(String[] args) {
  6.         Scanner scan = new Scanner(System.in);
  7.         String x = scan.next();
  8.         x = x.replaceAll("[aeyuio]", "");
  9.         if (x.equals(new StringBuilder(x).reverse().toString())) {System.out.print("YES");
  10.         }else{ System.out.print("NO");}
  11.     }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement