a = int(input())
b = a // 2
r = a % 2
arr = []
arr.append(r)

while (b != 0):
    a = b
    b = a // 2
    r = a % 2
    arr.append(r)
for i in range(len(arr)):
    print(arr[-(i + 1)], end = '')

Embed on website

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