Sprocket 2_2

Execute the program according to the drawing specification Sprocket 2_2.