positive_int = int(input())

binary = bin(positive_int)[2:]
reverse_binary = binary[::-1]
result = int(reverse_binary, 2)
print(reverse_binary)

Embed on website

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