# Author: Scott Wehrwein
# Date: 4/25/25
# Convert a decimal number to binary

import sys

n = int(sys.argv[1])

output = ""

while n > 0:
    output = str(n % 2) + output
    n //= 2

if output != "":
    print(output)
else:
    # make 0 print as 0 instead of ""
    print(0)