Rosetta Problems

Darker and Darker

https://atcoder.jp/contests/agc033/tasks/agc033_a