public static void main(String[] args) throws IOException {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String line = "";
		StringBuilder out = new StringBuilder();
		do {
			line = in.readLine();
			if (line == null || line.length() == 0)
				break;
			int[] trh = retInts(line);
			tr = new int[trh[0]][trh[1]];
			rh = new int[trh[1]][trh[2]];
			ht = new int[trh[2]][trh[0]];
			for (int i = 0; i < trh[0]; i++)
				tr[i] = retInts(in.readLine());
			for (int i = 0; i < trh[1]; i++)
				rh[i] = retInts(in.readLine());
			for (int i = 0; i < trh[2]; i++)
				ht[i] = retInts(in.readLine());
			min = Integer.MAX_VALUE;
			sol = "";
			searchTR();
			if(sol.length()==0)
			out.append("Don't get married!\n");
			else
			out.append(sol+"\n");
		} while (line != null && line.length() != 0);
		System.out.print(out);
	}