Rosetta Problems

JAG-channel II

https://atcoder.jp/contests/jag2015spring/tasks/icpc2015spring_g