for x in range(10):
    print(x)

for x in range(5, 12):
    print(x)

for x in range(10, 40, 5):
    print(x)


buttcrack = 5

while buttcrack < 10:
    print(buttcrack)
    buttcrack += 1