Rosetta Problems

1.05.入力

https://atcoder.jp/contests/APG4bPython/tasks/APG4bPython_f