Training for mcm2014. The third task.