# coding: utf-8

# Your code here!

import sys

input = sys.stdin.readline



A, B, C, X = [int(eval(input())) for _ in range(4)]



cnt = 0

for i in range(A+1):

    X1 = X - 500 * i

    if X1 == 0:

        cnt += 1

        continue

    for j in range(B+1):

        X2 = X1 - 100 * j

        if X2 == 0:

            cnt += 1

            continue

        for k in range(C+1):

            X3 = X2 - 50 * k

            if X3 == 0:

                cnt += 1

print(cnt)
# coding: utf-8

# Your code here!

import sys

input = sys.stdin.readline



A, B, C, X = [int(eval(input())) for _ in range(4)]



cnt = 0

for i in range(A+1):

    X1 = X - 500 * i

    if X1 >= 0:

        for j in range(B+1):

            X2 = X1 - 100 * j

            if X2 >= 0 and X2 <= 50 * C:

                cnt += 1



print(cnt)
# coding: utf-8
# Your code here!
import sys

input = sys.stdin.readline
A, B, C, X = [int(eval(input())) for _ in range(4)]
cnt = 0
for i in range(A + 1):
    X1 = X - 500 * i
    if X1 == 0:
        cnt += 1
        continue
    for j in range(B + 1):
        X2 = X1 - 100 * j
        if X2 == 0:
            cnt += 1
            continue
        for k in range(C + 1):
            X3 = X2 - 50 * k
            if X3 == 0:
                cnt += 1
print(cnt)

# coding: utf-8
# Your code here!
import sys

input = sys.stdin.readline
A, B, C, X = [int(eval(input())) for _ in range(4)]
cnt = 0
for i in range(A + 1):
    X1 = X - 500 * i
    if X1 >= 0:
        for j in range(B + 1):
            X2 = X1 - 100 * j
            if X2 >= 0 and X2 <= 50 * C:
                cnt += 1
print(cnt)

-    if X1 == 0: -        cnt += 1 -        continue -    for j in range(B + 1): -        X2 = X1 - 100 * j -        if X2 == 0: -            cnt += 1 -            continue -        for k in range(C + 1): -            X3 = X2 - 50 * k -            if X3 == 0: +    if X1 >= 0: +        for j in range(B + 1): +            X2 = X1 - 100 * j +            if X2 >= 0 and X2 <= 50 * C: