Rosetta Problems

Takahashi's Secret

https://atcoder.jp/contests/abc228/tasks/abc228_b