import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int A= sc.nextInt();
		int B = sc.nextInt();
		int C= sc.nextInt();
		int X= sc.nextInt();
		int count =0;
		for (int i=0;i*500<=X&&i<=A;i++) {
			int total = i*500;
			for (int j=0;j*100<=X-total&&j<=B;j++) {
				if ((X-total-j*100)/50<=C) {
					count ++;
				}
			}
		}
		System.out.println(count);
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int A= sc.nextInt();
		int B = sc.nextInt();
		int C= sc.nextInt();
		int X= sc.nextInt();
		int count =0;
		for (int i=0;i*500<=X&&i<=A;i++) {
			int total = i*500;
			for (int j=0;j*100<=X-total&&j<=B;j++) {
				if ((X-total-j*100)/50<=C) {
					count ++;
				}
			}
		}
		System.out.println(count);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int A= sc.nextInt();
		int B = sc.nextInt();
		int C= sc.nextInt();
		int X= sc.nextInt();
		int count =0;
		for (int i=0;i*500<=X&&i<=A;i++) {
			int total = i*500;
			for (int j=0;j*100<=X-total&&j<=B;j++) {
				if ((X-total-j*100)/50<=C) {
					count ++;
				}
			}
		}
		System.out.println(count);
	} main {
		Scanner sc = new Scanner(System.in);
		int A= sc.nextInt();
		int B = sc.nextInt();
		int C= sc.nextInt();
		int X= sc.nextInt();
		int count =0;
		for (int i=0;i*500<=X&&i<=A;i++) {
			int total = i*500;
			for (int j=0;j*100<=X-total&&j<=B;j++) {
				if ((X-total-j*100)/50<=C) {
					count ++;
				}
			}
		}
		System.out.println(count);
	} 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 count =0; count 0 for (int i=0;i*500<=X&&i<=A;i++) {
			int total = i*500;
			for (int j=0;j*100<=X-total&&j<=B;j++) {
				if ((X-total-j*100)/50<=C) {
					count ++;
				}
			}
		} int i=0; int i=0; i 0 i*500<=X&&i<=A i*500<=X i*500 i 500 X i<=A i A i++ i++ i {
			int total = i*500;
			for (int j=0;j*100<=X-total&&j<=B;j++) {
				if ((X-total-j*100)/50<=C) {
					count ++;
				}
			}
		} {
			int total = i*500;
			for (int j=0;j*100<=X-total&&j<=B;j++) {
				if ((X-total-j*100)/50<=C) {
					count ++;
				}
			}
		} int total = i*500; total i*500 i 500 for (int j=0;j*100<=X-total&&j<=B;j++) {
				if ((X-total-j*100)/50<=C) {
					count ++;
				}
			} int j=0; int j=0; j 0 j*100<=X-total&&j<=B j*100<=X-total j*100 j 100 X-total X total j<=B j B j++ j++ j {
				if ((X-total-j*100)/50<=C) {
					count ++;
				}
			} {
				if ((X-total-j*100)/50<=C) {
					count ++;
				}
			} if ((X-total-j*100)/50<=C) {
					count ++;
				} (X-total-j*100)/50<=C (X-total-j*100)/50 (X-total-j*100) X-total-j*100 X total j*100 j 100 50 C {
					count ++;
				} 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 sc = new Scanner(System.in);
		int A= sc.nextInt();
		int B = sc.nextInt();
		int C= sc.nextInt();
		int X= sc.nextInt();
		int count =0;
		for (int i=0;i*500<=X&&i<=A;i++) {
			int total = i*500;
			for (int j=0;j*100<=X-total&&j<=B;j++) {
				if ((X-total-j*100)/50<=C) {
					count ++;
				}
			}
		}
		System.out.println(count);
	}
} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int A= sc.nextInt();
		int B = sc.nextInt();
		int C= sc.nextInt();
		int X= sc.nextInt();
		int count =0;
		for (int i=0;i*500<=X&&i<=A;i++) {
			int total = i*500;
			for (int j=0;j*100<=X-total&&j<=B;j++) {
				if ((X-total-j*100)/50<=C) {
					count ++;
				}
			}
		}
		System.out.println(count);
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int A= sc.nextInt();
		int B = sc.nextInt();
		int C= sc.nextInt();
		int X= sc.nextInt();
		int count =0;
		for (int i=0;i*500<=X&&i<=A;i++) {
			int total = i*500;
			for (int j=0;j*100<=X-total&&j<=B;j++) {
				if ((X-total-j*100)/50<=C) {
					count ++;
				}
			}
		}
		System.out.println(count);
	}
}