#include #define FOREACH(it,c) for( __typeof((c).begin()) it=(c).begin();it!=(c).end();it++) #define FOR(a,b,c) for(int a=(b);a<=(c);++a) #define ROF(a,b,c) for(int a=(b);a>=(c);--a) #define dbg(x) cout<<#x<<" = "<<(x)<<"\n"; #define pii pair #define pil pair< pair< int, int> , ind > #define mp make_pair #define pb push_back #define fi first.first #define se first.second #define ind second #define ll long long #define TATA NULL using namespace std; const int NMAX = 100002; char s[NMAX],sol[NMAX]; int main(){ #ifndef ONLINE_JUDGE freopen("data.in","r",stdin); #endif // ONLINE_JUDGE cin.sync_with_stdio(false); cin.tie(TATA); gets(s); int len = 0; for(int i=0;s[i];i++) { if(s[i]==',') { sol[++len] = ' '; sol[++len] = ','; } else { if(s[i]=='-' || s[i]=='.') continue; sol[++len] = s[i]; } } cout<<(sol+1)<<"\n"; return 0; }