Rosetta Problems

Signed Difficulty

https://atcoder.jp/contests/abc216/tasks/abc216_a