public int minOperations(int[] red, int[] green, int[] blue) {
		int res = 0;
		int[][] all = { red, green, blue };
		boolean[] colors = new boolean[red.length];
		int[] cc;

		out: while (true) {
			int min = 0;
			int mini;
			boolean ok = true;
			for (int i = 0; i < colors.length; i++) {
				int c = 0;
				for (int[] is : all) {
					if (is[i] != 0) {
						c++;

					}
				}
				if (c > 1) {
					for (int[] is : all) {
						if (is[i] <= min && is[i] > 0) {
							min = is[i];
							mini = i;
							cc = is;
						}
					}
				}
				ok |= c <= 1;
			}
			if (ok) {
				break out;
			}
			
			
		}

		return res;
	}