#!perl -p use bigrat;$r=eval;s/$/ = /;s~\S*$~1/$= + $r~while$r-=1/($==1/$r+.999)