#include<bits/stdc++.h>
using namespace std;
#define ll long long

int main () {

    ios_base::sync_with_stdio(false);
  //  freopen("C:\\in.txt","r", stdin);
    int ch;
    while (EOF != (ch = getchar())) {
        if(ch == '.' || ch == '-'){

        } else if(ch == ','){
            cout << ' ';
            cout << (char)ch;
        } else {
            cout << (char)ch;
        }
    }
    return 0;
}