// The "TheresAnEssayInMyCode" class.
import java.awt.*;
import java.io.*;
import java.util.*;
public class TheresAnEssayInMyCode
{

    public static void main (String [] args) throws IOException
    {
	BufferedReader in = new BufferedReader (new FileReader ("DATA2.txt"));
	String word [] = new String [5];
	for (int i = 0 ; i < 5 ; i++)
	{
	    word [i] = in.readLine ();
	}
	in.close ();
	String comment [] = new String [5];
	for (int i = 0 ; i < 5 ; i++)
	{
	    comment [i] = "";
	}
	boolean rollin = false;
	boolean fancy = false;
	for (int x = 0 ; x < 5 ; x++)
	{
	    rollin = false;
	    fancy = false;
	    StringTokenizer line = new StringTokenizer (word [x]);
	    int o = 0;
	    for (int y = 0 ; y < word [x].length () ; y++)
	    {
		if (y + 2 < word [x].length ())
		{
		    if (word [x].charAt (y) == '/' && word [x].charAt (y + 1) == '/' || word [x].charAt (y) == '/' && word [x].charAt (y + 1) == '*' || word [x].charAt (y) == '"')
		    {
			rollin = true;
			if (y + 2 < word [x].length ())
			{
			    if (word [x].charAt (y + 1) == '*')
			    {
				fancy = true;
			    }
			}
		    }
		}
		if (word [x].charAt (y) == '*' && word [x].charAt (y + 1) == '/')
		{
		    rollin = false;
		    fancy = false;
		}
		if (rollin == true && word [x].charAt (y) != '/' && word [x].charAt (y) != '*')
		{
		    comment [x] = comment [x] + word [x].charAt (y);
		}
	    }
	}
	PrintWriter out = new PrintWriter (new FileWriter ("OUT2.txt"));
	for (int i = 0 ; i < 5 ; i++)
	{
	    out.println (comment [i]);
	}
	out.close ();
	/*String word = c.readLine ();
	StringTokenizer line = new StringTokenizer (word);
	int o = 0;
	String words [] = new String [line.countTokens ()];
	for (int i = 0 ; i < line.countTokens () ; i++)
	{
	    words [i] = "";
	}
	for (int i = 0 ; i < word.length () ; i++)
	{
	    if (word.charAt (i) == ' ')
	    {
		words [o] = words [o] + word.charAt (i);
	    }
	    else
	    {
		o++;
	    }
	}
	*/




	// Place your program here.  'c' is the output console
    } // main method
} // TheresAnEssayInMyCode class



