import java.util.*;

public class Main {

	public static void main(String[] args) {


		int A = 0;
		int B = 0;
		int C = 0;
		int X = 0;
		int difference = 0;
		int judge = 0;
		Scanner scanner = new Scanner(System.in);

		A = scanner.nextInt();
		B = scanner.nextInt();
		C = scanner.nextInt();
		X = scanner.nextInt();

		for(int i = 0; i <= A; i++) {
			for(int j = 0; j <= B; j++) {
				difference = (X -(500*i + 100*j))/50;
				if(difference >= 0 && difference <= C) {
					judge++;
				}
			}
		}
		System.out.println(judge);
	}
} import java.util.*; util.* java public class Main {

	public static void main(String[] args) {


		int A = 0;
		int B = 0;
		int C = 0;
		int X = 0;
		int difference = 0;
		int judge = 0;
		Scanner scanner = new Scanner(System.in);

		A = scanner.nextInt();
		B = scanner.nextInt();
		C = scanner.nextInt();
		X = scanner.nextInt();

		for(int i = 0; i <= A; i++) {
			for(int j = 0; j <= B; j++) {
				difference = (X -(500*i + 100*j))/50;
				if(difference >= 0 && difference <= C) {
					judge++;
				}
			}
		}
		System.out.println(judge);
	}
} Main public static void main(String[] args) {


		int A = 0;
		int B = 0;
		int C = 0;
		int X = 0;
		int difference = 0;
		int judge = 0;
		Scanner scanner = new Scanner(System.in);

		A = scanner.nextInt();
		B = scanner.nextInt();
		C = scanner.nextInt();
		X = scanner.nextInt();

		for(int i = 0; i <= A; i++) {
			for(int j = 0; j <= B; j++) {
				difference = (X -(500*i + 100*j))/50;
				if(difference >= 0 && difference <= C) {
					judge++;
				}
			}
		}
		System.out.println(judge);
	} main {


		int A = 0;
		int B = 0;
		int C = 0;
		int X = 0;
		int difference = 0;
		int judge = 0;
		Scanner scanner = new Scanner(System.in);

		A = scanner.nextInt();
		B = scanner.nextInt();
		C = scanner.nextInt();
		X = scanner.nextInt();

		for(int i = 0; i <= A; i++) {
			for(int j = 0; j <= B; j++) {
				difference = (X -(500*i + 100*j))/50;
				if(difference >= 0 && difference <= C) {
					judge++;
				}
			}
		}
		System.out.println(judge);
	} int A = 0; A 0 int B = 0; B 0 int C = 0; C 0 int X = 0; X 0 int difference = 0; difference 0 int judge = 0; judge 0 Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) A = scanner.nextInt() A scanner.nextInt() scanner.nextInt scanner B = scanner.nextInt() B scanner.nextInt() scanner.nextInt scanner C = scanner.nextInt() C scanner.nextInt() scanner.nextInt scanner X = scanner.nextInt() X scanner.nextInt() scanner.nextInt scanner for(int i = 0; i <= A; i++) {
			for(int j = 0; j <= B; j++) {
				difference = (X -(500*i + 100*j))/50;
				if(difference >= 0 && difference <= C) {
					judge++;
				}
			}
		} int i = 0; int i = 0; i 0 i <= A i A i++ i++ i {
			for(int j = 0; j <= B; j++) {
				difference = (X -(500*i + 100*j))/50;
				if(difference >= 0 && difference <= C) {
					judge++;
				}
			}
		} {
			for(int j = 0; j <= B; j++) {
				difference = (X -(500*i + 100*j))/50;
				if(difference >= 0 && difference <= C) {
					judge++;
				}
			}
		} for(int j = 0; j <= B; j++) {
				difference = (X -(500*i + 100*j))/50;
				if(difference >= 0 && difference <= C) {
					judge++;
				}
			} int j = 0; int j = 0; j 0 j <= B j B j++ j++ j {
				difference = (X -(500*i + 100*j))/50;
				if(difference >= 0 && difference <= C) {
					judge++;
				}
			} {
				difference = (X -(500*i + 100*j))/50;
				if(difference >= 0 && difference <= C) {
					judge++;
				}
			} difference = (X -(500*i + 100*j))/50 difference (X -(500*i + 100*j))/50 (X -(500*i + 100*j)) X (500*i + 100*j) 500*i 500 i 100*j 100 j 50 if(difference >= 0 && difference <= C) {
					judge++;
				} difference >= 0 && difference <= C difference >= 0 difference 0 difference <= C difference C {
					judge++;
				} judge++ judge System.out.println(judge) System.out.println System.out System System.out judge String[] args args public class Main {

	public static void main(String[] args) {


		int A = 0;
		int B = 0;
		int C = 0;
		int X = 0;
		int difference = 0;
		int judge = 0;
		Scanner scanner = new Scanner(System.in);

		A = scanner.nextInt();
		B = scanner.nextInt();
		C = scanner.nextInt();
		X = scanner.nextInt();

		for(int i = 0; i <= A; i++) {
			for(int j = 0; j <= B; j++) {
				difference = (X -(500*i + 100*j))/50;
				if(difference >= 0 && difference <= C) {
					judge++;
				}
			}
		}
		System.out.println(judge);
	}
} public class Main {

	public static void main(String[] args) {


		int A = 0;
		int B = 0;
		int C = 0;
		int X = 0;
		int difference = 0;
		int judge = 0;
		Scanner scanner = new Scanner(System.in);

		A = scanner.nextInt();
		B = scanner.nextInt();
		C = scanner.nextInt();
		X = scanner.nextInt();

		for(int i = 0; i <= A; i++) {
			for(int j = 0; j <= B; j++) {
				difference = (X -(500*i + 100*j))/50;
				if(difference >= 0 && difference <= C) {
					judge++;
				}
			}
		}
		System.out.println(judge);
	}
} Main
import java.util.*;

public class Main {

	public static void main(String[] args) {


		int A = 0;
		int B = 0;
		int C = 0;
		int X = 0;
		int difference = 0;
		int judge = 0;
		Scanner scanner = new Scanner(System.in);

		A = scanner.nextInt();
		B = scanner.nextInt();
		C = scanner.nextInt();
		X = scanner.nextInt();

		for(int i = 0; i <= A; i++) {
			for(int j = 0; j <= B; j++) {
				difference = (X -(500*i + 100*j))/50;
				if(difference >= 0 && difference <= C) {
					judge++;
				}
			}
		}
		System.out.println(judge);
	}
}