/* 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 str = "#Orange in Czech language mean #pomeranč :-)";
		ArrayList<String> allMatches = new ArrayList<String>();
        Matcher m = Pattern.compile("(?U)(#\\w+)\\b").matcher(str);
        while (m.find()) {
            allMatches.add(m.group());
        }
        System.out.println(Arrays.toString(allMatches.toArray()));
	}
}