/* 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 value = "#firstName.concat(' ').concat(#lastName)";
		Pattern p = Pattern.compile("#(\\w+)");
		Matcher m = p.matcher(value);
		while (m.find()) {
		    String s = m.group(1);
		    System.out.println("answer : " + s);
		}
	}
}