Rosetta Problems

エンド・オブ・ビギニング

https://atcoder.jp/contests/yuha-c88/tasks/yuha_c88_a