#include <iostream>
using namespace std;

int main() {
	
	std::string s("sfsfsgsdshhdfjj");
	
    string str;
    str.resize(s.length() * 3/2);
    size_t size = 0;

    for (size_t i = 0; i < s.length(); ++i) {
        str[size++] = s[i++];
        if (i < s.length()) {
            str[size++] = s[i];
            if (i != s.length() - 1)
                str[size++] = '-';
        }
    }
    // ;-)
    str.resize(size);
    
    cout << str << endl;
	
	return 0;
}