Rosetta Problems

Brewing potion 9

https://marisaoj.com/problem/660