#!/usr/bin/python3 import sys def pies(line): for x in line.split(): if x.lower() == "pies": print(line.rstrip('\n')) for line in sys.stdin: pies(line)