//package Contest087;

import java.io.PrintWriter;
import java.util.Scanner;

public class Main {
    public static void main(String []args)
    {
        Scanner sc = new Scanner(System.in);
        PrintWriter out = new PrintWriter(System.out);
            int a =sc.nextInt(),b=sc.nextInt(),c=sc.nextInt(),x=sc.nextInt();
            int cnt = 0;
            for(int i=0;i<=a;i++)
            {
                for(int j=0;j<=b;j++)
                {
                    for(int k=0;k<=c;k++)
                    {
                        int res = (500*i)+(100*j)+(50*k);
                        if(res==x)
                            cnt++;
                    }
                }
            }
            out.println(cnt);

        out.flush();
    }
} import java.io.PrintWriter; PrintWriter java.io import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String []args)
    {
        Scanner sc = new Scanner(System.in);
        PrintWriter out = new PrintWriter(System.out);
            int a =sc.nextInt(),b=sc.nextInt(),c=sc.nextInt(),x=sc.nextInt();
            int cnt = 0;
            for(int i=0;i<=a;i++)
            {
                for(int j=0;j<=b;j++)
                {
                    for(int k=0;k<=c;k++)
                    {
                        int res = (500*i)+(100*j)+(50*k);
                        if(res==x)
                            cnt++;
                    }
                }
            }
            out.println(cnt);

        out.flush();
    }
} Main public static void main(String []args)
    {
        Scanner sc = new Scanner(System.in);
        PrintWriter out = new PrintWriter(System.out);
            int a =sc.nextInt(),b=sc.nextInt(),c=sc.nextInt(),x=sc.nextInt();
            int cnt = 0;
            for(int i=0;i<=a;i++)
            {
                for(int j=0;j<=b;j++)
                {
                    for(int k=0;k<=c;k++)
                    {
                        int res = (500*i)+(100*j)+(50*k);
                        if(res==x)
                            cnt++;
                    }
                }
            }
            out.println(cnt);

        out.flush();
    } main {
        Scanner sc = new Scanner(System.in);
        PrintWriter out = new PrintWriter(System.out);
            int a =sc.nextInt(),b=sc.nextInt(),c=sc.nextInt(),x=sc.nextInt();
            int cnt = 0;
            for(int i=0;i<=a;i++)
            {
                for(int j=0;j<=b;j++)
                {
                    for(int k=0;k<=c;k++)
                    {
                        int res = (500*i)+(100*j)+(50*k);
                        if(res==x)
                            cnt++;
                    }
                }
            }
            out.println(cnt);

        out.flush();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) PrintWriter out = new PrintWriter(System.out); out new PrintWriter(System.out) int a =sc.nextInt() a sc.nextInt() sc.nextInt sc b=sc.nextInt() b sc.nextInt() sc.nextInt sc c=sc.nextInt() c sc.nextInt() sc.nextInt sc x=sc.nextInt(); x sc.nextInt() sc.nextInt sc int cnt = 0; cnt 0 for(int i=0;i<=a;i++)
            {
                for(int j=0;j<=b;j++)
                {
                    for(int k=0;k<=c;k++)
                    {
                        int res = (500*i)+(100*j)+(50*k);
                        if(res==x)
                            cnt++;
                    }
                }
            } int i=0; int i=0; i 0 i<=a i a i++ i++ i {
                for(int j=0;j<=b;j++)
                {
                    for(int k=0;k<=c;k++)
                    {
                        int res = (500*i)+(100*j)+(50*k);
                        if(res==x)
                            cnt++;
                    }
                }
            } {
                for(int j=0;j<=b;j++)
                {
                    for(int k=0;k<=c;k++)
                    {
                        int res = (500*i)+(100*j)+(50*k);
                        if(res==x)
                            cnt++;
                    }
                }
            } for(int j=0;j<=b;j++)
                {
                    for(int k=0;k<=c;k++)
                    {
                        int res = (500*i)+(100*j)+(50*k);
                        if(res==x)
                            cnt++;
                    }
                } int j=0; int j=0; j 0 j<=b j b j++ j++ j {
                    for(int k=0;k<=c;k++)
                    {
                        int res = (500*i)+(100*j)+(50*k);
                        if(res==x)
                            cnt++;
                    }
                } {
                    for(int k=0;k<=c;k++)
                    {
                        int res = (500*i)+(100*j)+(50*k);
                        if(res==x)
                            cnt++;
                    }
                } for(int k=0;k<=c;k++)
                    {
                        int res = (500*i)+(100*j)+(50*k);
                        if(res==x)
                            cnt++;
                    } int k=0; int k=0; k 0 k<=c k c k++ k++ k {
                        int res = (500*i)+(100*j)+(50*k);
                        if(res==x)
                            cnt++;
                    } {
                        int res = (500*i)+(100*j)+(50*k);
                        if(res==x)
                            cnt++;
                    } int res = (500*i)+(100*j)+(50*k); res (500*i)+(100*j)+(50*k) (500*i)+(100*j)+(50*k) (500*i) 500 i (100*j) 100 j (50*k) 50 k if(res==x)
                            cnt++; res==x res x cnt++ cnt out.println(cnt) out.println out cnt out.flush() out.flush out String []args args public class Main {
    public static void main(String []args)
    {
        Scanner sc = new Scanner(System.in);
        PrintWriter out = new PrintWriter(System.out);
            int a =sc.nextInt(),b=sc.nextInt(),c=sc.nextInt(),x=sc.nextInt();
            int cnt = 0;
            for(int i=0;i<=a;i++)
            {
                for(int j=0;j<=b;j++)
                {
                    for(int k=0;k<=c;k++)
                    {
                        int res = (500*i)+(100*j)+(50*k);
                        if(res==x)
                            cnt++;
                    }
                }
            }
            out.println(cnt);

        out.flush();
    }
} public class Main {
    public static void main(String []args)
    {
        Scanner sc = new Scanner(System.in);
        PrintWriter out = new PrintWriter(System.out);
            int a =sc.nextInt(),b=sc.nextInt(),c=sc.nextInt(),x=sc.nextInt();
            int cnt = 0;
            for(int i=0;i<=a;i++)
            {
                for(int j=0;j<=b;j++)
                {
                    for(int k=0;k<=c;k++)
                    {
                        int res = (500*i)+(100*j)+(50*k);
                        if(res==x)
                            cnt++;
                    }
                }
            }
            out.println(cnt);

        out.flush();
    }
} Main
//package Contest087;

import java.io.PrintWriter;
import java.util.Scanner;

public class Main {
    public static void main(String []args)
    {
        Scanner sc = new Scanner(System.in);
        PrintWriter out = new PrintWriter(System.out);
            int a =sc.nextInt(),b=sc.nextInt(),c=sc.nextInt(),x=sc.nextInt();
            int cnt = 0;
            for(int i=0;i<=a;i++)
            {
                for(int j=0;j<=b;j++)
                {
                    for(int k=0;k<=c;k++)
                    {
                        int res = (500*i)+(100*j)+(50*k);
                        if(res==x)
                            cnt++;
                    }
                }
            }
            out.println(cnt);

        out.flush();
    }
}
