Rosetta Problems

XXFESTIVAL

https://atcoder.jp/contests/code-festival-2017-qualb/tasks/code_festival_2017_qualb_a