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.substring(str.length()-2, str.length()).equals("ai")){ System.out.println(str.replaceAll("ai", "AI")); }else{ System.out.println(str + "-AI"); } } }