s= input() print(bin(ord(s))[2:]) print(oct(ord(s))[2:]) print(hex(ord(s))[2:]) #code by Luthics