public static void fillPre(int size) {
		pre = new String[size + 1];
		Arrays.fill(pre, "-1");
		String str = "";
		int three;
		for (int a = 0; a <= 224; a++)
			for (int b = a; b <= 224 && (a * a + b * b) <= LIM; b++)
				for (int c = b; c <= 224 && (a * a + b * b + c * c) <= LIM; c++) {
					three = a * a + b * b + c * c;
					str = a + " " + b + " " + c;
					if (pre[three].equals("-1"))	
						pre[three] = str;
				}
	}