#include <bits/stdc++.h>
using namespace std;
struct V {
  int w;
  vector<int> ns;
};
vector<V> vs;
struct E {
  int a, b, w;
};
vector<E> es;
void do_stuff(const string& s) {
  if (s.length() == 2) {
    cout << s[0] << s[1] << endl;
  } else if (s.length() == 3) {
    cout << s[0] << s[1] << s[2] << endl;
  } else if (s.length() == 4) {
    cout << s[0] << s[1] << "-";
    do_stuff(s.substr(2));
  } else {
    cout << s[0] << s[1] << s[2] << "-";
    do_stuff(s.substr(3));
  }
}
int main() {
  string s;
  getline(cin, s);
  getline(cin, s);
  do_stuff(s);
}
