#include using namespace std; typedef pair Pair; int main() { #ifndef ONLINE_JUDGE freopen("debug", "r", stdin); #endif // ONLINE_JUDGE char str[500000]; cin.get(str, 500000); for(int i=0; str[i]; i++) { if(str[i] == '.' || str[i] == '-') continue; if(str[i] == ',') { cout << ' '; } cout << str[i]; } return 0; }