#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';
}
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y3N0cmluZz4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmNvbnN0IGludCBNQVhfU0laRSA9IDEwMDA7Cgpib29sIGlzTGV0dGVyKGNoYXIgYykgewogICAgcmV0dXJuICgnQScgPD0gYyAmJiBjIDw9ICdaJykgfHwgKCdhJyA8PSBjICYmIGMgPD0gJ3onKTsKfQoKdm9pZCB0cmFuc2Zvcm1UZXh0KGNoYXIgdGV4dFtdKSB7CiAgICBpbnQgbGVuZ3RoID0gc3RybGVuKHRleHQpLCB3b3JkUG9zID0gMDsKICAgIGZvciAoaW50IGkgPSAwOyBpIDwgbGVuZ3RoOyArK2kpIHsKICAgICAgICBpZiAoaXNMZXR0ZXIodGV4dFtpXSkpIHsKICAgICAgICAgICAgaWYgKGlzTGV0dGVyKHRleHRbaSArIDFdKSkgewogICAgICAgICAgICAgICAgaWYgKHdvcmRQb3MgJSAyID09IDApIHsKICAgICAgICAgICAgICAgICAgICBjaGFyIGF1eCA9IHRleHRbaSArIDFdOwogICAgICAgICAgICAgICAgICAgIHRleHRbaSArIDFdID0gdGV4dFtpXTsKICAgICAgICAgICAgICAgICAgICB0ZXh0W2ldID0gYXV4OwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9IGVsc2UgaWYgKHdvcmRQb3MgJSAyID09IDApICB7CiAgICAgICAgICAgICAgICB0ZXh0W2ldID0gJzAnOwogICAgICAgICAgICB9CiAgICAgICAgICAgICsrd29yZFBvczsKICAgICAgICB9IGVsc2UgewogICAgICAgICAgICB3b3JkUG9zID0gMDsKICAgICAgICB9CiAgICB9Cn0KCmludCBtYWluKCkgewogICAgY2hhciB0ZXh0W01BWF9TSVpFICsgMV07CiAgICB3aGlsZSAoY2luLmdldGxpbmUodGV4dCwgTUFYX1NJWkUgKyAxKSkgewogICAgICAgIHRyYW5zZm9ybVRleHQodGV4dCk7CiAgICAgICAgY291dCA8PCB0ZXh0IDw8ICdcbic7CiAgICB9Cn0=