import sys

input = sys.stdin.readline



from math import factorial

from itertools import combinations

from collections import Counter

from copy import deepcopy

from operator import mul

from functools import reduce



def main():

    a = int(eval(input()))

    b = int(eval(input()))

    c = int(eval(input()))

    x = int(eval(input()))

    r = 0

    for ia in range(a + 1):

        for ib in range(min(b + 1, (x - ia * 500)//100 + 1)):

            for ic in range(min(c + 1, (x - ia * 500 - ib * 100)//50 + 1)):

                r +=  ia * 500 + ib * 100 + ic * 50 == x





    print(r)



if __name__ == '__main__':

    main()

import sys

input = sys.stdin.readline



from math import factorial

from itertools import combinations

from collections import Counter

from copy import deepcopy

from operator import mul

from functools import reduce



def main():

    a = int(eval(input()))

    b = int(eval(input()))

    c = int(eval(input()))

    x = int(eval(input()))

    r = 0

    for ia in range(a + 1):

        for ib in range(min(b + 1, (x - ia * 500)//100 + 1)):

            r +=  (x - ia * 500 - ib * 100) // 50 <= c



    print(r)



if __name__ == '__main__':

    main()

import sys

input = sys.stdin.readline
from math import factorial
from itertools import combinations
from collections import Counter
from copy import deepcopy
from operator import mul
from functools import reduce


def main():
    a = int(eval(input()))
    b = int(eval(input()))
    c = int(eval(input()))
    x = int(eval(input()))
    r = 0
    for ia in range(a + 1):
        for ib in range(min(b + 1, (x - ia * 500) // 100 + 1)):
            for ic in range(min(c + 1, (x - ia * 500 - ib * 100) // 50 + 1)):
                r += ia * 500 + ib * 100 + ic * 50 == x
    print(r)


if __name__ == "__main__":
    main()

import sys

input = sys.stdin.readline
from math import factorial
from itertools import combinations
from collections import Counter
from copy import deepcopy
from operator import mul
from functools import reduce


def main():
    a = int(eval(input()))
    b = int(eval(input()))
    c = int(eval(input()))
    x = int(eval(input()))
    r = 0
    for ia in range(a + 1):
        for ib in range(min(b + 1, (x - ia * 500) // 100 + 1)):
            r += (x - ia * 500 - ib * 100) // 50 <= c
    print(r)


if __name__ == "__main__":
    main()

-            for ic in range(min(c + 1, (x - ia * 500 - ib * 100) // 50 + 1)): -                r += ia * 500 + ib * 100 + ic * 50 == x +            r += (x - ia * 500 - ib * 100) // 50 <= c