using System; namespace ConsoleApp11 { class Program { static void Main(string[] args) { string S = Console.ReadLine(); if(S[S.Length - 1] == 'i' && S[S.Length - 2] == 'a') { string str = S.Remove(S.Length - 2, 2); Console.WriteLine(str + "AI"); } else { Console.WriteLine(S + "-AI"); } } } }