Rosetta Problems

Both Reversible

https://atcoder.jp/contests/arc171/tasks/arc171_f