#include <stdio.h>
int main() {
int n,r,i=0;
int num[100];
scanf("%d",&n);
while(n==1) {
r=n%2;
n=n/2;
num[i]=r;
i++;
}
printf("%d",i);
while(i--) {
printf("%d",num[i]);
}
printf("%d",i);
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: