Rosetta Problems

Cooking Contest

https://atcoder.jp/contests/awc0170/tasks/awc0170_a