#include<bits/stdc++.h>

using namespace std;

int main() {

    ios_base::sync_with_stdio(0);
    cin.tie(0);

    // freopen("data.in","r",stdin);

    string s; cin >> s;

    for(int i = s.size()-1; i >= 0; i--) {
        if(s[i] == ',') {
            s[i] = ' ';
            break;
        }
    }

    cout << s << '\n';

    return 0;
}
