#include <iostream>
#include <algorithm>

using namespace std;

int ans[2001][2001];
int n,m,i,a,b,k,j,x;
char s[102];

int main()
{
    cin.get( s , 110 );
    while( s[ n ] != 0 )++n;
    for( i = 0 ; i < n ; i++ )
    {
        if( s[ i ] == ',' )
            cout<<" ,";
        else if( s[ i ] != '-' && s[ i ] != '.' )
        cout<<s[ i ];
    }

return 0;
}