N = int(input())
count = 10
ans = []
while N != 0:
    ad =  N%2
    N = N//2
    ans.insert(0,ad)  
    count -=1

for i in range(count):
    ans.insert(0,0)
num = ''.join(map(str, ans))
print(num) 

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: