using System; using System.Collections.Generic; using System.Linq; namespace _0446 { class Program { static void Main(string[] args) { var s = Console.ReadLine(); if (s.Substring(s.Length-2) == "ai") { s = s.Replace("ai","AI"); } else { s = s + "-AI"; } Console.WriteLine(s); } } }