#!/usr/bin/python
#_*_ coding:utf-8 _*_
binary = ['128','64','32','16','8','4','2','1','0']
jg = []
ad = int(raw_input('请输入数值:'))
#print binary
for i in range(9):
numb = int(binary[i])
if ad == numb:
jg.append('1')
jg.append((len(binary)-i-1)*'0')
break
elif ad > numb:
ad = ad - numb
jg.append('1')
else:
jg.append('0')
print(''.join(jg))
#@_@ 欢迎交流!联系人 广西宾阳 阿桂 qq149951292