Overall medal counts in Trinomial Triangle in Prolog. Ranked by golds, then diamonds, then silvers, then bronzes.