問題来てた。解く。50byte。
while 1:s=raw_input();print s[0]!='h'and'h'+s or s
Pythonトップ勢はそろって40byte。ふーむ?
[追記]:
46byte。もうちょい。
while 1:print'h'+raw_input().replace('ht','t')
[追記その2]:
39byte! おっしゃトップだ!
同位記録がいくつか出てきたので公開。
while 1:print'h'+raw_input().strip('h')