#include<string>
#include <iostream>
using namespace std;
int main()
{
string x;
cin>>x;
int y=x.length();
for(int i=1;i<=y;i++){
if(i==y)
cout<<x[i-1];
else
cout<<x[i-1]<<"-";
}
return 0;
}pronhub.com