Rosetta Problems

Red and Blue Medals

https://atcoder.jp/contests/utpc2021/tasks/utpc2021_f