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