#include #include using namespace std; string st; int main () { getline (cin, st); for (int i = 0; i < st.size (); ++i) if (st[i] == ',') st.insert (i++, " "); else if (st[i] == '-' || st[i] == '.') st.erase (i--, 1); cout << st; return 0; }