1 2 3 4 5 6 7 8 9
uses math, strutils; var n: int64; begin readln(n); writeln(inttobin(n, trunc(log2(n)) + 1)) end.