while 1: b=0 for c in raw_input(): if cc] a,b=b,c