d = { 'doc':'Word', 'xls':'Excel', 'ppt':'PowerPoint', } str1,str2=map(str,raw_input().strip().split('.')) print d[str2]