public static void main(String[] args) {
		all = Set.get(args[0]);
		for (int i = 0; i < all.set.length(); ++i) {
			rules.put(Set.get("" + all.set.charAt(i)), Set.get("" + all.set.charAt(i)));
		}
		for (int i = 1; i < args.length; ++i) {
			String[] parts = args[i].split("->", 2);
			final Set left = Set.get(parts[0]);
			final Set right = Set.get(parts[1]);
			Set ret = rules.get(left);
			if (ret == null) {
				rules.put(left, right);
			} else {
				rules.put(left, Set.get(right.set + ret.set));
			}
		}
		testSubset(all.set);
		for (String key : keys) {
			System.out.println(key);
		}
	}