if __name__ == '__main__':
    A = int(input())
    B = int(input())
    C = int(input())
    X = int(input())
    
    count = 0
    for i in range(A + 1):
        for j in range(B + 1):
            for k in range(C + 1):
                total = 500 * i + 100 * j + 50 * k
                if total == X:
                    count += 1
    print(count)
