[begin] pad dup 9 stdin read-line + [while] evaluate 2dup * 0 d>f + 0 d>f f/ fdup flog f>d + 4 + 2. f.rdp cr [repeat]