Rosetta Problems

Nice Bouquets

https://atcoder.jp/contests/utpc2024/tasks/utpc2024_n