dic1 = {'doc':'Word','xls':'Excel','ppt':'PowerPoint'} while True: try: a,b = input().split('.') print(dic1[b]) except EOFError: break