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

class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		String[] strings = {
			"	--hello;(hello;hello)hello;",
			"hello;(hello;hello)hello;"
		};
		
		for (String s : strings) {
			if (!s.matches("^[ \\t]*--.*$")) {
				System.out.println(Arrays.toString(s.split(";(?![^()]*\\))")));
			}
		}
	}
}