#include <bits/stdc++.h>

using namespace std;

# define pb push_back
# define mp make_pair
# define FORN( a , b , c ) for ( int a = b ; a <= c ; ++ a )
# define FORNBACK( a , b , c ) for ( int a = b ; a >= c ; -- a )

int main()
{
    ios :: sync_with_stdio ( false ) ;

    //freopen( "input" , "r" , stdin ) ;
    //freopen( "output" , "w" , stdout ) ;
    char stf [ 1000 ] ;
    gets ( stf + 1 ) ;
    int l = strlen ( stf + 1 ) ;
    FORN ( i , 1 , l )
        if ( stf [ i ] == '.' or stf [ i ] == '-' ) continue ;
        else if ( stf [ i ] == ',' ) cout << " ," ;
        else cout << stf [ i ] ;
    return 0 ;
}