XJTU_Python/homework/3/1.py

6 lines
71 B
Python

s = input()
a = int(s, 2)
print(oct(a)[2:])
print(a)
print(hex(a)[2:])