s = gets.chomp puts s[-2, 2] == 'ai' ? s[0, s.size - 2] + 'AI' : s + '-AI'