let rec(@)p?(c=try input_byte stdin with _->o p;0/0)i=p+1<>c&(i>0&o p;o c);i=1&p+1=c&o 45;c@if c=p+1then i+1else 0and o p=()=output_byte stdout p;;0@0