#!/usr/bin/perl

while (<>) {
    print if /(p|fr)ei(ce|nd)|teh/;
}
