"""Derive the binary expansion of a number provided by the user"""
# MCS 260 Fall 2020 Project 1 solution
# Emily Dumas

n = int(input())
print("x x//2 x%2") # header
binstr = ""  # will store bits as a string
x = n        # we will modify x but not n
while x > 0:
    print(x,x//2,x%2)
    if x % 2 == 0:
        binstr = "0" + binstr
    else:
        binstr = "1" + binstr
    x = x//2

# we use + in the next line to avoid extra space
print("Therefore,",n,"= 0b" + binstr)
