#include <bits/stdc++.h>
using namespace std;
int main() {
#ifndef ONLINE_JUDGE
    freopen("in.txt","r",stdin);
#endif // ONLINE_JUDGE
    char s[100005];
    fgets(s,100001,stdin);
    //cout << strlen(s) << endl;
    //puts(s);
    for(int i=0 ; s[i] ; i++){
        if(isalpha(s[i])||s[i]=='\n') printf("%c",s[i]);
        else printf(" ");
    }
    return 0;
}
