import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class No536 { public static void main(String[] args) throws IOException{ String str = new BufferedReader(new InputStreamReader(System.in)).readLine(); if(str.endsWith("ai")){ byte[] strByte = str.getBytes(); strByte[strByte.length - 2] -= 32; strByte[strByte.length - 1] -= 32; System.out.println(new String(strByte)); } else System.out.println(str + "-AI"); } }