import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int A = in.nextInt();
		int B = in.nextInt();
		int C = in.nextInt();
		int X = in.nextInt();

		int count = 0;

		for (int i = 0; i <= A; i++) {
			for (int j = 0; j <= B; j++) {
				int c = (X - i * 500 - j * 100) / 50;
				if (c >= 0 && c <= C) {
					count++;
				}

			}
		}
		System.out.println(count);
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int A = in.nextInt();
		int B = in.nextInt();
		int C = in.nextInt();
		int X = in.nextInt();

		int count = 0;

		for (int i = 0; i <= A; i++) {
			for (int j = 0; j <= B; j++) {
				int c = (X - i * 500 - j * 100) / 50;
				if (c >= 0 && c <= C) {
					count++;
				}

			}
		}
		System.out.println(count);
	}
} Main public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int A = in.nextInt();
		int B = in.nextInt();
		int C = in.nextInt();
		int X = in.nextInt();

		int count = 0;

		for (int i = 0; i <= A; i++) {
			for (int j = 0; j <= B; j++) {
				int c = (X - i * 500 - j * 100) / 50;
				if (c >= 0 && c <= C) {
					count++;
				}

			}
		}
		System.out.println(count);
	} main {
		Scanner in = new Scanner(System.in);
		int A = in.nextInt();
		int B = in.nextInt();
		int C = in.nextInt();
		int X = in.nextInt();

		int count = 0;

		for (int i = 0; i <= A; i++) {
			for (int j = 0; j <= B; j++) {
				int c = (X - i * 500 - j * 100) / 50;
				if (c >= 0 && c <= C) {
					count++;
				}

			}
		}
		System.out.println(count);
	} Scanner in = new Scanner(System.in); in new Scanner(System.in) int A = in.nextInt(); A in.nextInt() in.nextInt in int B = in.nextInt(); B in.nextInt() in.nextInt in int C = in.nextInt(); C in.nextInt() in.nextInt in int X = in.nextInt(); X in.nextInt() in.nextInt in int count = 0; count 0 for (int i = 0; i <= A; i++) {
			for (int j = 0; j <= B; j++) {
				int c = (X - i * 500 - j * 100) / 50;
				if (c >= 0 && c <= C) {
					count++;
				}

			}
		} int i = 0; int i = 0; i 0 i <= A i A i++ i++ i {
			for (int j = 0; j <= B; j++) {
				int c = (X - i * 500 - j * 100) / 50;
				if (c >= 0 && c <= C) {
					count++;
				}

			}
		} {
			for (int j = 0; j <= B; j++) {
				int c = (X - i * 500 - j * 100) / 50;
				if (c >= 0 && c <= C) {
					count++;
				}

			}
		} for (int j = 0; j <= B; j++) {
				int c = (X - i * 500 - j * 100) / 50;
				if (c >= 0 && c <= C) {
					count++;
				}

			} int j = 0; int j = 0; j 0 j <= B j B j++ j++ j {
				int c = (X - i * 500 - j * 100) / 50;
				if (c >= 0 && c <= C) {
					count++;
				}

			} {
				int c = (X - i * 500 - j * 100) / 50;
				if (c >= 0 && c <= C) {
					count++;
				}

			} int c = (X - i * 500 - j * 100) / 50; c (X - i * 500 - j * 100) / 50 (X - i * 500 - j * 100) X - i * 500 - j * 100 X i * 500 i 500 j * 100 j 100 50 if (c >= 0 && c <= C) {
					count++;
				} c >= 0 && c <= C c >= 0 c 0 c <= C c 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 in = new Scanner(System.in);
		int A = in.nextInt();
		int B = in.nextInt();
		int C = in.nextInt();
		int X = in.nextInt();

		int count = 0;

		for (int i = 0; i <= A; i++) {
			for (int j = 0; j <= B; j++) {
				int c = (X - i * 500 - j * 100) / 50;
				if (c >= 0 && c <= C) {
					count++;
				}

			}
		}
		System.out.println(count);
	}
} public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int A = in.nextInt();
		int B = in.nextInt();
		int C = in.nextInt();
		int X = in.nextInt();

		int count = 0;

		for (int i = 0; i <= A; i++) {
			for (int j = 0; j <= B; j++) {
				int c = (X - i * 500 - j * 100) / 50;
				if (c >= 0 && c <= C) {
					count++;
				}

			}
		}
		System.out.println(count);
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int A = in.nextInt();
		int B = in.nextInt();
		int C = in.nextInt();
		int X = in.nextInt();

		int count = 0;

		for (int i = 0; i <= A; i++) {
			for (int j = 0; j <= B; j++) {
				int c = (X - i * 500 - j * 100) / 50;
				if (c >= 0 && c <= C) {
					count++;
				}

			}
		}
		System.out.println(count);
	}
}
