LearnPy Hub
← Data Types & Casting problems
Hard

Binary Form

Read a non-negative integer and print its binary form without the 0b prefix, then convert that text back to an integer with int(text, 2) and print it.

Input

One integer ≥ 0.

Output

Two lines.

Sample 1

Input
5
Output
101
5

Sample 2

Input
0
Output
0
0
solution.py
Output appears here
Hints
Binary Form · Python practice problem · LearnPy Hub