1787. Turn for MEGA

Solved.