package yukicoder; import java.util.Scanner; public class N536 { public static void main(String[] args){ Scanner sc = new Scanner(System.in); String s = sc.nextLine(); if(s.substring(s.length() - 2, s.length()).equals("ai")){ System.out.println(s.substring(0, s.length() - 2) + "AI"); }else{ System.out.println(s + "-AI"); } } }