def max_after_zero(x):
    """Find max element after zero in array.

    input:
    x -- 1-d numpy array
    output:
    maximum element after zero -- integer number

    Not vectorized implementation.
    """
    n = len(x)
    mx = 0
    for i in range(n - 1):
        if (x[i] == 0):
            mx = max(mx, x[i + 1])    
    return mx
    pass