package m.shin; import java.util.Scanner; public class Con536 { public static void main(String[] args) { Scanner s = new Scanner(System.in); String str = s.nextLine(); s.close(); if(str.indexOf("ai") == str.length()-2){ System.out.println(str.replaceAll("ai", "AI")); }else{ System.out.println(str + "-AI"); } } }