# 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:

        for j in range(B+1):

            X2 = X1 - 100 * j

            if X2 >= 0:

                if 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:
        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:
        for j in range(B + 1):
            X2 = X1 - 100 * j
            if X2 >= 0:
                if X2 <= 50 * C:
                    cnt += 1
print(cnt)

-            if X2 >= 0 and X2 <= 50 * C: -                cnt += 1 +            if X2 >= 0: +                if X2 <= 50 * C: +                    cnt += 1