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