/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	static String solution(String S) {
        if (S.length() < 2) return "meh";
        S = S.replaceAll(" |-", "");
        StringBuffer result = new StringBuffer();
        for (int i = 0; i < S.length(); i++) {
            result.append(S.charAt(i));
            if (i >= 2 && (i+1)%3 == 0) {
                result.append('-');
            }
        }
        return result.toString();
    }
	
	public static void main (String[] args) throws java.lang.Exception
	{
		System.out.println(solution("00-44  48 5555 8361"));
	}
}