This is code of training for programming contests.