#include <stdio.h>
int x,y; //x = dividendo, y = base
int main() {
scanf("%d", &x);
if(x==0) {
printf("0");
}
while(x>0) {
y=0;
while(x>=2) {
x=x-2;
y++;
}
printf("%d", x);
x=y;
}
}
To embed this project on your website, copy the following code and paste it into your website's HTML: