// Alex Velea
#include <algorithm>
#include <iostream>
#include <map>
#include <vector>
using namespace std;

#define int64 long long

const int kMaxN = 1e5+5;
const int inf = 0x3f3f3f3f;

int main() {
  string txt;
  while (getline(cin, txt)) {
  string response = "";
  for (int i = 0; i < int(txt.size()); i += 1) {
    char c = txt[i];
    if (c == '-' or c == '.') {
      continue;
    }
    if (c == ',') {
      response += ' ';
    }
    response += c;
  }
  cout << response << '\n';
  }
  return 0;
}