import strutils var s = readLine stdin echo if s.endswith "ai": s[0 .. ^3] & "AI" else: s & "-AI"