Solve UVa 11463 - Commandos.