for(a=b=gc;r=readline().split(",");)r[6]&&print(r.filter(function(x,i)(x[5]=='e'?a=i:0)|(/p HC \(/.test(x)?b=i:0)|a==i|b==i))

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page