#include <iostream>
#include <string>
#include <sstream>
using namespace std;
string restoreSentence(string line) {
size_t pos = line.find("之");
if (pos != string::npos) {
string object = line.substr(0, pos);
string predicate = line.substr(pos + 3);
return predicate + object;
}
pos = line.find("是");
if (pos != string::npos){
string object = line.substr(0, pos);
string predicate = line.substr(pos + 3);
return predicate + object;
}
return line;
}
int main() {
string line;
while (getline(cin, line)) {
if (line.empty()) {
continue;
}
string restored = restoreSentence(line);
cout << restored << endl;
}
return 0;
}