import java.util.*; public class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { String s = sc.next(); String end = ""; end += s.substring(s.length()-2,s.length()); if (end.equals("ai")) { StringBuilder sb = new StringBuilder(s); sb.delete(sb.length()-2,sb.length()); sb.append("AI"); System.out.println(sb); } else { System.out.println(s+"-AI"); } } }