Rosetta Problems

Alchemist

https://atcoder.jp/contests/abc138/tasks/abc138_c