#32793: python 內建函數基本款


a35500605 (xiang)


while True:
    try:
        n = int(input())
        print(bin(n)[2:])
    except:
        break