/* 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 regex = "(?<var>@\\S+)\\s+(?<val>\\S+)";

        String val = "@name Home @options {} @include h1,h2,h3 @exclude p,div,em";

        Pattern pattern = Pattern.compile(regex);
        Matcher matcher = pattern.matcher(val);
        Map<String, String> m = new HashMap<String, String>();
        while (matcher.find()) {
        	m.put(matcher.group("var"), matcher.group("val"));
        }
        System.out.println(m);
	}
}