A program for Task of the "Basics of programming".