Skip to content
UPEEC

Two's Complement

Medium#engineering#digital#bit-manipulation· solved by 0 · time limit 2.0 s

Print the bb-bit two's complement representation of the integer nn (exactly bb binary digits). If nn doesn't fit in bb signed bits (range −2b−1…2b−1−1-2^{b-1} \dots 2^{b-1}-1), print Overflow.

Input

Two integers nn and bb.

Output

The bit pattern or Overflow.

Constraints

1≤b≤641 \le b \le 64, ∣n∣≤263|n| \le 2^{63}

Sample 1

Input

5 8

Output

00000101

Sample 2

Input

-5 8

Output

11111011

Sign in or join free to run and submit your solution.