a=["bowl","knife","fork","chopsticks"] while True: s=input().split() for i in s[1:]: if i in a: print(i,end=" ") print()