Rosetta Problems

Martial artist

https://atcoder.jp/contests/abc226/tasks/abc226_c