import java.math.BigInteger;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.PriorityQueue;
import java.util.Scanner;

class Main {
    static final int MOD = 1000000007;
    static final int INF = 1 << 30;

    Main() {
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int C = sc.nextInt();
        int X = sc.nextInt();
        int ans = 0;
        for(int a=0;a<=A;a++){
            for(int b=0;b<=B;b++){
                for(int c=0;c<=C;c++){
                    if(500*a+100*b+50*c==X)ans++;
                }
            }
        }
        System.out.println(ans);
    }

    public static void main(String[] args) {
        new Main();
    }
} import java.math.BigInteger; BigInteger java.math import java.util.ArrayList; ArrayList java.util import java.util.Arrays; Arrays java.util import java.util.Collections; Collections java.util import java.util.Comparator; Comparator java.util import java.util.HashMap; HashMap java.util import java.util.HashSet; HashSet java.util import java.util.Iterator; Iterator java.util import java.util.List; List java.util import java.util.Map; Map java.util import java.util.Map.Entry; Entry java.util.Map import java.util.PriorityQueue; PriorityQueue java.util import java.util.Scanner; Scanner java.util class Main {
    static final int MOD = 1000000007;
    static final int INF = 1 << 30;

    Main() {
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int C = sc.nextInt();
        int X = sc.nextInt();
        int ans = 0;
        for(int a=0;a<=A;a++){
            for(int b=0;b<=B;b++){
                for(int c=0;c<=C;c++){
                    if(500*a+100*b+50*c==X)ans++;
                }
            }
        }
        System.out.println(ans);
    }

    public static void main(String[] args) {
        new Main();
    }
} Main static final int MOD = 1000000007; MOD 1000000007 static final int INF = 1 << 30; INF 1 << 30 1 30 Main() {
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int C = sc.nextInt();
        int X = sc.nextInt();
        int ans = 0;
        for(int a=0;a<=A;a++){
            for(int b=0;b<=B;b++){
                for(int c=0;c<=C;c++){
                    if(500*a+100*b+50*c==X)ans++;
                }
            }
        }
        System.out.println(ans);
    } Main {
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int C = sc.nextInt();
        int X = sc.nextInt();
        int ans = 0;
        for(int a=0;a<=A;a++){
            for(int b=0;b<=B;b++){
                for(int c=0;c<=C;c++){
                    if(500*a+100*b+50*c==X)ans++;
                }
            }
        }
        System.out.println(ans);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int A = sc.nextInt(); A sc.nextInt() sc.nextInt sc int B = sc.nextInt(); B sc.nextInt() sc.nextInt sc int C = sc.nextInt(); C sc.nextInt() sc.nextInt sc int X = sc.nextInt(); X sc.nextInt() sc.nextInt sc int ans = 0; ans 0 for(int a=0;a<=A;a++){
            for(int b=0;b<=B;b++){
                for(int c=0;c<=C;c++){
                    if(500*a+100*b+50*c==X)ans++;
                }
            }
        } int a=0; int a=0; a 0 a<=A a A a++ a++ a {
            for(int b=0;b<=B;b++){
                for(int c=0;c<=C;c++){
                    if(500*a+100*b+50*c==X)ans++;
                }
            }
        } {
            for(int b=0;b<=B;b++){
                for(int c=0;c<=C;c++){
                    if(500*a+100*b+50*c==X)ans++;
                }
            }
        } for(int b=0;b<=B;b++){
                for(int c=0;c<=C;c++){
                    if(500*a+100*b+50*c==X)ans++;
                }
            } int b=0; int b=0; b 0 b<=B b B b++ b++ b {
                for(int c=0;c<=C;c++){
                    if(500*a+100*b+50*c==X)ans++;
                }
            } {
                for(int c=0;c<=C;c++){
                    if(500*a+100*b+50*c==X)ans++;
                }
            } for(int c=0;c<=C;c++){
                    if(500*a+100*b+50*c==X)ans++;
                } int c=0; int c=0; c 0 c<=C c C c++ c++ c {
                    if(500*a+100*b+50*c==X)ans++;
                } {
                    if(500*a+100*b+50*c==X)ans++;
                } if(500*a+100*b+50*c==X)ans++; 500*a+100*b+50*c==X 500*a+100*b+50*c 500*a+100*b+50*c 500*a 500 a 100*b 100 b 50*c 50 c X ans++ ans System.out.println(ans) System.out.println System.out System System.out ans public static void main(String[] args) {
        new Main();
    } main {
        new Main();
    } new Main() String[] args args
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.PriorityQueue;
import java.util.Scanner;

class Main {
    static final int MOD = 1000000007;
    static final int INF = 1 << 30;

    Main() {
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int C = sc.nextInt();
        int X = sc.nextInt();
        int ans = 0;
        for(int a=0;a<=A;a++){
            for(int b=0;b<=B;b++){
                for(int c=0;c<=C;c++){
                    if(500*a+100*b+50*c==X)ans++;
                }
            }
        }
        System.out.println(ans);
    }

    public static void main(String[] args) {
        new Main();
    }
}
