# 1028
num = input()
print(num)

# 1029
num = input()
num = float(num)
num = round(num,11)
print('%.11f' %num)

# 1030
num = input()
print(num)

# 1031
num = input()
num = int(num)
num = format(num,'o')
print(num)

# 1032
num = input()
num = int(num)
num = format(num,'x')
print(num)

# 1033
num = input()
num = int(num)
num = format(num,'X')
print(num)

# 1034
num = input()
num = int(num,8)
print(num)

# 1035
num = input()
num = int(num,16)
num = format(num,'o')
print(num)

# 1036
num = input()
num = ord(num)
print(num)

# 1037
num = input()
num = int(num)
num = chr(num)
print(num)