Solve the task