Rosetta Problems

Protect from the enemy attack

https://onlinejudge.u-aizu.ac.jp/problems/2835