Russian Science Academy task to help check programming olympiads.