#include using namespace std; int main(){ /*#ifndef ONLINE_JUDGE freopen("debug.in", "r", stdin); #endif // ONLINE_JUDGE*/ string s; while(cin >> s){ for(int i = 0; i < (int)s.size(); i++){ if(s[i] == '-' || s[i] == '.') continue; if(s[i] == ',') cout << " "; cout << s[i]; } cout << " "; } return 0; }