#include<iostream> #include<fstream> #include<vector> #include<string> using namespace std; int main() { string text; getline(cin, text); for (int i = 0; i < text.size(); ++i) { if (text[i] == '-'||text[i] == '.') { text.erase(i, 1); } else { if (i<text.size()-1 && text[i+1] == ',') { text.insert(i+1, 1,' '); i++; } } } cout << text << "\n"; }