list = [1,4,5,7,82,10];

for el in list:
    if el >= 30:
        break;
    print(el);