#include <cstdio>
#include <cstring>
using namespace std;
void rezolva_problema()
{
    char c;
    scanf("%c", &c);
    while(c!='\n'&&c!='\0')
    {
        if(c==',') printf(" ");
        if(c!='.'&&c!='-') printf("%c",c);
        scanf("%c", &c);
    }
}
int main()
{
//    freopen("a.in", "r", stdin);
//    freopen("a.out", "w", stdout);
    rezolva_problema();
    return 0;
}