public static int[] parseRules(String rules) {
		int[] dest = new int[4];
		
		try {
			String[] spl1 = rules.split("/");
			String[] spl2 = spl1[1].split("@");
			dest[0] = Integer.parseInt(spl1[0]);
			dest[1] = Integer.parseInt(spl2[0]);
			dest[2] = Integer.parseInt(spl2[1]);
		} catch(Exception e) {
			dest[3] = 1;
		} finally {
			if(dest[0] == 0) dest[0] = 4;
			if(dest[1] == 0) dest[1] = 4;
			if(dest[2] == 0) dest[2] = 1;
		}
		
		return dest;
	}