class Median {

   public static int max(List<List<Integer>> lists) {
      int max = Integer.MIN_VALUE;

      for (List<Integer> integerList : lists) {
         max = Math.max(max, Collections.max(integerList));
      }
      return max;
   }

}