Liola and Eastred are playing a chasing game on a square loop which consists of

grids, the size of the square is

. Both Liola and Eastred can only move clockwise. In the beginning, Liola is at the upper right corner, and Eastred is at the bottom left corner.
The game is played in rounds, each round performs the following steps
in order:
- Liola places a trap at his current position. Eastred can't move to the grids with traps, but Liola ignores these traps.
- Liola moves
or
grids. - Eastred moves
or
grids.
At any time (even if a round is not over), the game is over if it meets any one of the following conditions:
- If all the
grids that Eastred can move have traps, Eastred can't move, Liola wins. - If Liola and Eastred are at the same grid, Eastred catches Liola, Eastred wins.
Both Liola and Eastred will play optimally. Can Eastred win? If he can, you should find the
minimum number of rounds Eastred takes to win. In addition, If Liola can't win, he will try to make the number of rounds as large as possible.