#include <iostream>
#include <cstring>
using namespace std;

const int MAX_SIZE = 1000;

bool isLetter(char c) {
    return ('A' <= c && c <= 'Z') || ('a' <= c && c <= 'z');
}

void transformText(char text[]) {
    int length = strlen(text), wordPos = 0;
    for (int i = 0; i < length; ++i) {
        if (isLetter(text[i])) {
            if (isLetter(text[i + 1])) {
                if (wordPos % 2 == 0) {
                    char aux = text[i + 1];
                    text[i + 1] = text[i];
                    text[i] = aux;
                }
            } else if (wordPos % 2 == 0)  {
                text[i] = '0';
            }
            ++wordPos;
        } else {
            wordPos = 0;
        }
    }
}

int main() {
    char text[MAX_SIZE + 1];
    while (cin.getline(text, MAX_SIZE + 1)) {
        transformText(text);
        cout << text << '\n';
    }
}