Task №2 (programming MIPT).