cur = []
for c in range(0, 500,3):
if (c % 2 != 0) and (c % 3 == 0):
cur.append(c)
soma = sum(cur)
print(soma)
Y3VyID0gW10KZm9yIGMgaW4gcmFuZ2UoMCwgNTAwLDMpOgogICAgaWYgKGMgJSAyICE9IDApIGFuZCAoYyAlIDMgPT0gMCk6CiAgICAgICAgY3VyLmFwcGVuZChjKSAKc29tYSA9IHN1bShjdXIpCnByaW50KHNvbWEp