Rosetta Problems

イウィ

https://atcoder.jp/contests/tdpc/tasks/tdpc_iwi