Rosetta Problems

Strange Relation

https://atcoder.jp/contests/agc048/tasks/agc048_e