#include //#define fin cin //#define fout cout #define F first #define S second using namespace std; typedef long long ll; int n , i; char sir[110]; string a; int main() { #ifndef ONLINE_JUDGE freopen("input.in","r",stdin); freopen("output.out","w",stdout); #endif // ONLINE_JUDGE /* #ifndef ONLINE_JUDGE ifstream fin("input.in"); ofstream fout("output.out"); #endif // ONLINE_JUDGE */ gets(sir + 1); int n = strlen(sir + 1); for (i = 1; i <= n; ++i) { if (sir[i] == '.') continue; if (sir[i] == '-') continue; if (sir[i] == ',') a.push_back(' '); a.push_back(sir[i]); } for (i = 0; i < (int)a.size() - 1; ++i) { if (a[i] == ' ' && a[i+1] == ' ') continue; printf("%c", a[i]); } printf("%c", a.back()); return 0; }