a=input() if a[2:]=="ai": print(a.replace(a[:2],"AI")) else: print(a)