def max_element(l: list):
    m = l[0]
    for e in l:
        if e > m:
            m = e
    return m
from typing import List
def below_zero(operations: List[int]) -> bool:
    balance = 0
    for op in operations:
        balance += op
        if balance < 0:
            return True
    return False