class Median {

   public static int of(List<List<Integer>> ints) {
      int min = min(ints);
      int max = max(ints);

      for (int i = min; i <= max; i++) {
         final Ordinality ordinality = ordinality(i, ints);
         if (ordinality.isMedian()) {
            return i;
         }
      }

      throw new UnsupportedOperationException("Not found");
   }

}