#include <stdio.h>

int p,r;

int main() {
    scanf("%d", &p);
    if(p==0) {
        printf("0");
    }
    while(p>0) {
        r=0;
        while(p>=2) {
            p=p-2;
            r++;
        }
        printf("%d", p);
        p=r;
    }
}

Embed on website

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