Problem Description

Input has one integer n is provided (can be very large). Output how many bits are needed to represent |n| in binary. For n=0 output 1.

Input Format

One integer n.

Output Format

One integer bitLength.

Constraints

-10^200000

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next