from itertools import cycle
print([s if i % 5 == 0 else n for n,s,i
in zip(cycle([1,2,3]), cycle("ab"), range(1,41))])
ICAgICBmcm9tIGl0ZXJ0b29scyBpbXBvcnQgY3ljbGUKCiAgICBwcmludChbcyBpZiBpICUgNSA9PSAwIGVsc2UgbiBmb3IgbixzLGkKICAgICAgICBpbiB6aXAoY3ljbGUoWzEsMiwzXSksIGN5Y2xlKCJhYiIpLCByYW5nZSgxLDQxKSldKSA=