program prog3; var a:array[1..1000000] of longint; j,k,n,i:longint; r:longint; begin readln(n); for i:=1 to n do a[i]:=i; a[1]:=0; k:=1; while (k0 then begin r:=r+1; end; writeln(r); end.