Rosetta Problems

Eat Them All

https://atcoder.jp/contests/abc227/tasks/abc227_h