#include <stdio.h>
int main() {
    int n;
    if (scanf("%d", &n) == 1) {
        int modified_n = replaceZerosWitchOnes(n);
        printf("%d\n", modified_n);
    }
    int sample_input1 = 102030;
    int sample_output1 = replaceZeroswitchOnes(sample_input);
    return 0;
}