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.Substring(0,s.Length - 2) + "AI"; } else { s = s + "-AI"; } Console.WriteLine(s); } } }