#include <iostream>
#include <cstring>

using namespace std;

char c[107], aux[107];
int i, n;

int main()
{
    cin.getline(c, 104);

    n = strlen(c);

    for (i = 0; i < n; ++ i)
        if (c[i] == '-')
    {
        strcpy(aux, c + i + 1);
        strcpy(c + i, aux);
    }

    for (i = 0; i < n; ++ i)
        if (c[i] == ',')
            cout << " " << c[i];
    else
            cout << c[i];
    return 0;
}