#include <stdio.h>

int a,b;

int main() {
    scanf("%d", &a);

    if(a==0) {
        printf("0");
    }
    while(a>0) {
        b=0;
        while(a>=2) {
            a=a-2;
            b++;
        }

        printf("%d", a);
        a=b;

    }
}

Embed on website

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