public static void main(String[] args) throws IOException {
		StringBuilder out = new StringBuilder();
		l = new Cube[223]; // Pre calculate
		int cont = 0;
		long a = 0;
		double a_3 = 0, aux;
		for (int i = 2; i <= 199; i++)
			for (int j = i; j <= 199; j++)
				if (p3(i) + p3(j) <= LIMIT)
					for (int k = j; k <= 199; k++) {
						a = p3(i) + p3(j) + p3(k);
						a_3 = (int) Math.round(Math.pow(a, 1 / 3.0));
						aux = Math.pow(a_3, 3);
						if (a <= LIMIT && Math.abs(aux - a) <= EPS)
							l[cont++] = new Cube((int) a_3, i, j, k);
					}
		Arrays.sort(l);
		for (int i = 0; i < cont; i++)
			out.append(l[i] + "\n");
		System.out.print(out);
	}