Rosetta Problems

Cooking Contest and Ingredients

https://atcoder.jp/contests/awc0031/tasks/awc0031_a