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 ans = 0;

		for (int a = 0; a <= A; a++) {
			for (int b = 0; b <= B; b++) {
				int c = (X - (500 * a) - (100 * b)) / 50;
				if (c >= 0 && c <= C) {
					ans++;
				}
			}
		}
		System.out.println(ans);
	}
} 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 ans = 0;

		for (int a = 0; a <= A; a++) {
			for (int b = 0; b <= B; b++) {
				int c = (X - (500 * a) - (100 * b)) / 50;
				if (c >= 0 && c <= C) {
					ans++;
				}
			}
		}
		System.out.println(ans);
	}
} 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 ans = 0;

		for (int a = 0; a <= A; a++) {
			for (int b = 0; b <= B; b++) {
				int c = (X - (500 * a) - (100 * b)) / 50;
				if (c >= 0 && c <= C) {
					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++) {
				int c = (X - (500 * a) - (100 * b)) / 50;
				if (c >= 0 && c <= C) {
					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++) {
				int c = (X - (500 * a) - (100 * b)) / 50;
				if (c >= 0 && c <= C) {
					ans++;
				}
			}
		} 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 (c >= 0 && c <= C) {
					ans++;
				}
			}
		} {
			for (int b = 0; b <= B; b++) {
				int c = (X - (500 * a) - (100 * b)) / 50;
				if (c >= 0 && c <= C) {
					ans++;
				}
			}
		} for (int b = 0; b <= B; b++) {
				int c = (X - (500 * a) - (100 * b)) / 50;
				if (c >= 0 && c <= C) {
					ans++;
				}
			} int b = 0; int b = 0; b 0 b <= B b B b++ b++ b {
				int c = (X - (500 * a) - (100 * b)) / 50;
				if (c >= 0 && c <= C) {
					ans++;
				}
			} {
				int c = (X - (500 * a) - (100 * b)) / 50;
				if (c >= 0 && c <= C) {
					ans++;
				}
			} 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) X (500 * a) 500 a (100 * b) 100 b 50 if (c >= 0 && c <= C) {
					ans++;
				} c >= 0 && c <= C c >= 0 c 0 c <= C c C {
					ans++;
				} ans++ ans System.out.println(ans) System.out.println System.out System System.out ans 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 ans = 0;

		for (int a = 0; a <= A; a++) {
			for (int b = 0; b <= B; b++) {
				int c = (X - (500 * a) - (100 * b)) / 50;
				if (c >= 0 && c <= C) {
					ans++;
				}
			}
		}
		System.out.println(ans);
	}
} 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 ans = 0;

		for (int a = 0; a <= A; a++) {
			for (int b = 0; b <= B; b++) {
				int c = (X - (500 * a) - (100 * b)) / 50;
				if (c >= 0 && c <= C) {
					ans++;
				}
			}
		}
		System.out.println(ans);
	}
} 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 ans = 0;

		for (int a = 0; a <= A; a++) {
			for (int b = 0; b <= B; b++) {
				int c = (X - (500 * a) - (100 * b)) / 50;
				if (c >= 0 && c <= C) {
					ans++;
				}
			}
		}
		System.out.println(ans);
	}
}