import java.util.Scanner;

public class encrypts {


   public static void main(String[] args) {
   
      final Scanner sc = new Scanner(System.in);
   
      System.out.print("Enter an uppercase word: ");
   
      String input = sc.nextLine(),op="";
   
      input=input.toUpperCase();
   
      for(int i=0;i<input.length();i++) {
      
         final char ch=input.charAt(i);
         
         op +=
            switch (ch)
            {
               
               case  'A'   -> "E";
               case  'E'   -> "I";
               case  'I'   -> "O";
               case  'O'   -> "U";
               case  'U'   -> "A";
               default     -> String.valueOf(ch);
               
            }
            ;
      
      }
   
      System.out.println("The encrypted word is: "+op);
   
   }}