#include #include using namespace std; int main(){ string s; getline(cin, s); int c = s.find('-'); while(c != -1){ s.erase(c, 1); c = s.find('-'); } c = s.find('.'); while(c != -1){ s.erase(c, 1); c = s.find('.'); } c = s.find(","); while(c != -1 && c < s.length()){ if(s[c-1] != ' ') s.insert(c, " "); c = s.find(",", c+2); //cout << c << " - " << s.length() << endl; } cout << s; return 0; }