let S = stdin.readLine proc changeAI(s: string) = stdout.write(s[0 .. ^3]) proc addAI(s: string) = stdout.write(s & '-') if S.len < 2: S.addAI elif S[^2 .. ^1] == "ai": S.changeAI else: S.addAI echo "AI"