class Median {

   public static Ordinality ordinality(int pivot, List<List<Integer>> lists) {
      Ordinality result = Ordinality.EMPTY;

      for (List<Integer> list : lists) {
         result = result.update(listOrdinality(pivot, list));
      }
      return result;
   }

}