fl = map(str,raw_input().strip().split('.')) dic = {'doc':'Word','xls':'Excel','ppt':'PowerPoint'} kd = fl[int(len(fl)-1)] print dic[kd]