#!usr/bin/python #coding=utf-8 dd={'.doc':'Word','.xls':'Excel','.ppt':'PowerPoint'} str=raw_input() print dd[str[-4:]]