# Program to convert Decimal to Hexadecimal 
 
i=0
dec=int(input("Enter Decimal number: "))
Hex=['0']*50
while dec!=0:
    rem=dec%16;
    #Convert Integer to char
    if rem<10:
        Hex[i]=chr(rem+48)#48 Ascii=0
        i+=1
    else:
        Hex[i]=chr(rem+55) #55 Ascii=7
        i+=1
    dec//=16
print("Hexadecimal number is:")
for j in range(i-1,-1,-1):
    print(Hex[j],end="")