Pairwise Product (#6) - zUJGOI 2024