using System; public class Hello{ public static void Main(){ string input = Console.ReadLine(); if(input.Substring(input.Length - 2,2) == "ai"){ Console.WriteLine(input.Substring(0,input.Length - 2) + "AI"); }else{ Console.WriteLine(input + "-AI"); } } }