import java.io.*;
import java.util.*;

public class Main {

    public static void main(String[] args) {
        Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));

        int a = in.nextInt(), b = in.nextInt(), c = in.nextInt(), n = in.nextInt();

        int count = 0;
        for (int i = 0; i <= a; i++) {
            int x = 500 * i;
            for (int j = 0; j <= b; j++) {
                int y = 100 * j;
                if (n - x - y >= 0 && (n - x - y) % 50 == 0 && (n - x - y) / 50 <= c)
                    count++;
            }
        }
        System.out.println(count);

    }
} import java.io.*; io.* java import java.util.*; util.* java public class Main {

    public static void main(String[] args) {
        Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));

        int a = in.nextInt(), b = in.nextInt(), c = in.nextInt(), n = in.nextInt();

        int count = 0;
        for (int i = 0; i <= a; i++) {
            int x = 500 * i;
            for (int j = 0; j <= b; j++) {
                int y = 100 * j;
                if (n - x - y >= 0 && (n - x - y) % 50 == 0 && (n - x - y) / 50 <= c)
                    count++;
            }
        }
        System.out.println(count);

    }
} Main public static void main(String[] args) {
        Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));

        int a = in.nextInt(), b = in.nextInt(), c = in.nextInt(), n = in.nextInt();

        int count = 0;
        for (int i = 0; i <= a; i++) {
            int x = 500 * i;
            for (int j = 0; j <= b; j++) {
                int y = 100 * j;
                if (n - x - y >= 0 && (n - x - y) % 50 == 0 && (n - x - y) / 50 <= c)
                    count++;
            }
        }
        System.out.println(count);

    } main {
        Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));

        int a = in.nextInt(), b = in.nextInt(), c = in.nextInt(), n = in.nextInt();

        int count = 0;
        for (int i = 0; i <= a; i++) {
            int x = 500 * i;
            for (int j = 0; j <= b; j++) {
                int y = 100 * j;
                if (n - x - y >= 0 && (n - x - y) % 50 == 0 && (n - x - y) / 50 <= c)
                    count++;
            }
        }
        System.out.println(count);

    } Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in))); in new Scanner(new BufferedReader(new InputStreamReader(System.in))) int a = in.nextInt() a in.nextInt() in.nextInt in b = in.nextInt() b in.nextInt() in.nextInt in c = in.nextInt() c in.nextInt() in.nextInt in n = in.nextInt(); n in.nextInt() in.nextInt in int count = 0; count 0 for (int i = 0; i <= a; i++) {
            int x = 500 * i;
            for (int j = 0; j <= b; j++) {
                int y = 100 * j;
                if (n - x - y >= 0 && (n - x - y) % 50 == 0 && (n - x - y) / 50 <= c)
                    count++;
            }
        } int i = 0; int i = 0; i 0 i <= a i a i++ i++ i {
            int x = 500 * i;
            for (int j = 0; j <= b; j++) {
                int y = 100 * j;
                if (n - x - y >= 0 && (n - x - y) % 50 == 0 && (n - x - y) / 50 <= c)
                    count++;
            }
        } {
            int x = 500 * i;
            for (int j = 0; j <= b; j++) {
                int y = 100 * j;
                if (n - x - y >= 0 && (n - x - y) % 50 == 0 && (n - x - y) / 50 <= c)
                    count++;
            }
        } int x = 500 * i; x 500 * i 500 i for (int j = 0; j <= b; j++) {
                int y = 100 * j;
                if (n - x - y >= 0 && (n - x - y) % 50 == 0 && (n - x - y) / 50 <= c)
                    count++;
            } int j = 0; int j = 0; j 0 j <= b j b j++ j++ j {
                int y = 100 * j;
                if (n - x - y >= 0 && (n - x - y) % 50 == 0 && (n - x - y) / 50 <= c)
                    count++;
            } {
                int y = 100 * j;
                if (n - x - y >= 0 && (n - x - y) % 50 == 0 && (n - x - y) / 50 <= c)
                    count++;
            } int y = 100 * j; y 100 * j 100 j if (n - x - y >= 0 && (n - x - y) % 50 == 0 && (n - x - y) / 50 <= c)
                    count++; n - x - y >= 0 && (n - x - y) % 50 == 0 && (n - x - y) / 50 <= c n - x - y >= 0 && (n - x - y) % 50 == 0 && (n - x - y) / 50 <= c n - x - y >= 0 n - x - y n - x - y n x y 0 (n - x - y) % 50 == 0 (n - x - y) % 50 (n - x - y) n - x - y n x y 50 0 (n - x - y) / 50 <= c (n - x - y) / 50 (n - x - y) n - x - y n x y 50 c count++ count System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main {

    public static void main(String[] args) {
        Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));

        int a = in.nextInt(), b = in.nextInt(), c = in.nextInt(), n = in.nextInt();

        int count = 0;
        for (int i = 0; i <= a; i++) {
            int x = 500 * i;
            for (int j = 0; j <= b; j++) {
                int y = 100 * j;
                if (n - x - y >= 0 && (n - x - y) % 50 == 0 && (n - x - y) / 50 <= c)
                    count++;
            }
        }
        System.out.println(count);

    }
} public class Main {

    public static void main(String[] args) {
        Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));

        int a = in.nextInt(), b = in.nextInt(), c = in.nextInt(), n = in.nextInt();

        int count = 0;
        for (int i = 0; i <= a; i++) {
            int x = 500 * i;
            for (int j = 0; j <= b; j++) {
                int y = 100 * j;
                if (n - x - y >= 0 && (n - x - y) % 50 == 0 && (n - x - y) / 50 <= c)
                    count++;
            }
        }
        System.out.println(count);

    }
} Main
import java.io.*;
import java.util.*;

public class Main {

    public static void main(String[] args) {
        Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));

        int a = in.nextInt(), b = in.nextInt(), c = in.nextInt(), n = in.nextInt();

        int count = 0;
        for (int i = 0; i <= a; i++) {
            int x = 500 * i;
            for (int j = 0; j <= b; j++) {
                int y = 100 * j;
                if (n - x - y >= 0 && (n - x - y) % 50 == 0 && (n - x - y) / 50 <= c)
                    count++;
            }
        }
        System.out.println(count);

    }
}