//
// Created by song on 2026/1/11.
//
#include<iostream>
#include<string>
#include<algorithm>
using namespace std;
int main() {
    string s;
    cin >> s;
    string t;
    for (char i : s) {
        if ((i - '0') % 2 == 0)
            t.push_back('0');
        else
            t.push_back('1');
    }
    int temp = stoi(t);
    cout << temp << endl;
    return 0;
}