XJTU_Python/homework/3/1.py

7 lines
88 B
Python

s = input()
a = int(s, 2)
print(oct(a)[2:])
print(a)
print(hex(a)[2:])
#code by Luthics