In the nineteenth century there was a popular game called the Tower of Hanoi. It consisted of three rods and eight rings of different diameters. They had to be placed in the form of a cone of a pyramid with a ring of the largest diameter at the bottom, and the smallest ring should crown the pyramid. The game Tower of Hanoi deviates a little from the classic rules. There will be three rings at first, and at each subsequent level they will be added. Move them over the rods until you form a pyramid in the Tower of Hanoi.