using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class Program { static void Main(string[] args) { new Magatro().Solve(); } } class Magatro { string S; private void Scan() { S = Console.ReadLine(); } public void Solve() { Scan(); var arr = S.ToArray(); if(arr[arr.Length-1] == 'i'&&arr[arr.Length-2] == 'a') { arr[arr.Length - 1] = 'I'; arr[arr.Length - 2] = 'A'; Console.WriteLine(new string(arr)); } else { Console.WriteLine("{0}-AI", S); } } }