import java.io.*;
import java.util.ArrayList;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

class Schema_Parse_Functions
{
	public static boolean process(String file_name)
	{
		try
		{
		FileInputStream f=new FileInputStream(file_name);
		FileOutputStream fo=new FileOutputStream("graph_final.txt",true);
		DataInputStream bf=new DataInputStream(f);
		
		PrintStream ds=new PrintStream(fo);
		
		while(bf.available()>0)
		{
			String str=bf.readLine();
			Pattern pattern = Pattern.compile("^*FUNCTION");
			Matcher matcher = pattern.matcher(str);
					
			if(matcher.find())
			{
				if(!(str.indexOf("END_FUNCTION")>0))
				{
					str=str.trim();
					int index=str.indexOf(' ');
					int for_index=str.indexOf("(");
				 ds.println(str.substring(index,for_index));
				}
			}
						
		}
		ds.close();
		
		
		}catch(Exception e)		
		{
			System.err.println(e);
		}
		return true;
	}
}