hex = [0,1,2,3,4,5,6,7,8,9,"A","B","C","D","E","F"]
n = int(input("Digite um núemro inteiro: "))
r = []
while n > 0:
r.append(hex[(n % 16)])
n = n // 16
for i in range(len(r)-1,-1,-1):
print(r[i],end="")
aGV4ID0gWzAsMSwyLDMsNCw1LDYsNyw4LDksIkEiLCJCIiwiQyIsIkQiLCJFIiwiRiJdCm4gPSBpbnQoaW5wdXQoIkRpZ2l0ZSB1bSBuw7plbXJvIGludGVpcm86ICIpKQpyID0gW10Kd2hpbGUgbiA+IDA6CiAgICByLmFwcGVuZChoZXhbKG4gJSAxNildKQogICAgbiA9IG4gLy8gMTYKZm9yIGkgaW4gcmFuZ2UobGVuKHIpLTEsLTEsLTEpOgogICAgcHJpbnQocltpXSxlbmQ9IiIp