import java.util.*;
import static java.lang.System.*;

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

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