using System.Collections.Generic; using System; using System.Drawing; namespace yukicoder { class Program { static void Main(string[] args) { var S = Console.ReadLine(); if (S.Substring(S.Length - 2 , 2) == "ai") { string up = S.Substring(S.Length - 2 , 2).ToUpper(); string rem = S.Remove(S.Length - 2, 2); Console.WriteLine(rem + up); } else if (!(S.Substring(S.Length - 2, 2) == "ai")) { Console.WriteLine(S + "-AI"); } } } }