Rosetta Problems

Two Kinds of Base

https://atcoder.jp/contests/abc322/tasks/abc322_g