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

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

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		String input = new Scanner(System.in).useDelimiter("\\Z").next();
		
		final Pattern p = Pattern.compile(
                "\".*?(?<!\\\\)\"|" +   // ignore string literals
                "(?s)<%--.*?--%>|" +    // ignore JSP comments
                "<!--(.*?)-->");        // capture HTML comments in group #1
		
		Matcher m = p.matcher(input);
		StringBuffer sb = new StringBuffer();
		while (m.find()) {
		    if (m.group(1) != null) {
		    	m.appendReplacement(sb, "<%--$1--%>");
		    }
		}
		m.appendTail(sb);
		String output = sb.toString();
		
		System.out.println(output);
	}
}