l = [1,2,3,4,5]
for i in l:
l.remove(i)
print(len(l))
print()
l = [1,2,3,4,5]
for i in reversed(range(len(l))):
del l[i]
print(len(l))
bCA9IFsxLDIsMyw0LDVdCgpmb3IgaSBpbiBsOgogICAgbC5yZW1vdmUoaSkKICAgIHByaW50KGxlbihsKSkKCnByaW50KCkKCmwgPSBbMSwyLDMsNCw1XQoKZm9yIGkgaW4gcmV2ZXJzZWQocmFuZ2UobGVuKGwpKSk6CiAgICBkZWwgbFtpXQogICAgcHJpbnQobGVuKGwpKQ==