#include<iostream>
#include<string>
#include<list>
#include<sstream>

using namespace std;

int main()
{
	long int N;

	cin >> N;

	string str, newstr;
	newstr = "";
	ostringstream convert;

	convert << N;
	str = convert.str();

	for (int i = 0; i < str.length() - 1; i++)
	{
		newstr += str[i];
		newstr += '-';
	}
	newstr += str[str.size() - 1];

	cout << newstr;
}