Rosetta Problems

Harvest from the Field

https://atcoder.jp/contests/awc0168/tasks/awc0168_b