Rosetta Problems

Yet Another Minimization

https://atcoder.jp/contests/arc129/tasks/arc129_e