s = list(input()) if s[-2:] == ['a', 'i']: s[-2:] = ['A', 'I'] print(''.join(s)) else: s.append('-AI') print(''.join(s))