import java.util.Scanner; public class N536 { public static void main(String[] args) { Scanner sc=new Scanner(System.in); String S=sc.next(); int l=S.length(); StringBuilder sb=new StringBuilder(); sb.append(S); if(S.substring(l-2,l).equals("ai")) { sb.replace(l-2, l, "AI"); } else { sb.append("-AI"); } S=sb.toString(); System.out.println(S); } }