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