#include <iostream>

using namespace std;
string input,output;
int main()
{
    getline(cin,input);
    for(char x:input)
    {
        if(x!='.' && x!='-')
        {
            if(x==',')
                output+=" ";
            output+=x;
        }
    }
    cout<<output;
}