f=(gets[0,1]=='e') gets(p) w=[] d=$_.chomp if f w<0) w.unshift(d[-2,1]) w<0) w<