inp=input()
print(inp)
uni=[]
for i in inp:
m=ord(i)
uni.append(m)
print("10進数")
for u in uni:
print(u,end=' ')
print("\n2進数")
for u in uni:
print(bin(u),end=' ')
print("\n16進数")
for u in uni:
print(hex(u),end=' ')
print("\n8進数")
for u in uni:
print(oct(u),end=' ')