while 1: i=raw_input() if' apple'in i or'Apple 'in i: if'pineapple'in i.lower():print"Pen Pineapple Apple Pen" else:print'Apple Pen' else:print'Pineapple Pen'\x09\x09
Note that non-ascii characters in the above source code will be escaped (such as \x9f).