https://www.nowcoder.com/practice/0337e32b1e5543a19fa380e36d9343d7?tpId=60&tqId=29473&tPage=1&ru=/kaoyan/retest/1001&qru=/ta/tsing-kaoyan/question-ranking
try:
while True:
dec = int(input())
ans = bin(dec)
print(ans.split('b')[1])
except EOFError:
pass