
import java.util.Scanner;

public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		int C = sc.nextInt();
		int X = sc.nextInt();
		int res = 0;
		for (int i = 0; i <= A; i++) {
			for (int j = 0; j <= B; j++) {
				for (int j2 = 0; j2 <= C; j2++) {
					if (X == (500 * i + 100 * j + 50 * j2)) {
						res++;
					}
				}
			}

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

		}
		System.out.println(res);
	}
} Main public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		int C = sc.nextInt();
		int X = sc.nextInt();
		int res = 0;
		for (int i = 0; i <= A; i++) {
			for (int j = 0; j <= B; j++) {
				for (int j2 = 0; j2 <= C; j2++) {
					if (X == (500 * i + 100 * j + 50 * j2)) {
						res++;
					}
				}
			}

		}
		System.out.println(res);
	} main {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		int C = sc.nextInt();
		int X = sc.nextInt();
		int res = 0;
		for (int i = 0; i <= A; i++) {
			for (int j = 0; j <= B; j++) {
				for (int j2 = 0; j2 <= C; j2++) {
					if (X == (500 * i + 100 * j + 50 * j2)) {
						res++;
					}
				}
			}

		}
		System.out.println(res);
	} 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 res = 0; res 0 for (int i = 0; i <= A; i++) {
			for (int j = 0; j <= B; j++) {
				for (int j2 = 0; j2 <= C; j2++) {
					if (X == (500 * i + 100 * j + 50 * j2)) {
						res++;
					}
				}
			}

		} int i = 0; int i = 0; i 0 i <= A i A i++ i++ i {
			for (int j = 0; j <= B; j++) {
				for (int j2 = 0; j2 <= C; j2++) {
					if (X == (500 * i + 100 * j + 50 * j2)) {
						res++;
					}
				}
			}

		} {
			for (int j = 0; j <= B; j++) {
				for (int j2 = 0; j2 <= C; j2++) {
					if (X == (500 * i + 100 * j + 50 * j2)) {
						res++;
					}
				}
			}

		} for (int j = 0; j <= B; j++) {
				for (int j2 = 0; j2 <= C; j2++) {
					if (X == (500 * i + 100 * j + 50 * j2)) {
						res++;
					}
				}
			} int j = 0; int j = 0; j 0 j <= B j B j++ j++ j {
				for (int j2 = 0; j2 <= C; j2++) {
					if (X == (500 * i + 100 * j + 50 * j2)) {
						res++;
					}
				}
			} {
				for (int j2 = 0; j2 <= C; j2++) {
					if (X == (500 * i + 100 * j + 50 * j2)) {
						res++;
					}
				}
			} for (int j2 = 0; j2 <= C; j2++) {
					if (X == (500 * i + 100 * j + 50 * j2)) {
						res++;
					}
				} int j2 = 0; int j2 = 0; j2 0 j2 <= C j2 C j2++ j2++ j2 {
					if (X == (500 * i + 100 * j + 50 * j2)) {
						res++;
					}
				} {
					if (X == (500 * i + 100 * j + 50 * j2)) {
						res++;
					}
				} if (X == (500 * i + 100 * j + 50 * j2)) {
						res++;
					} X == (500 * i + 100 * j + 50 * j2) X (500 * i + 100 * j + 50 * j2) 500 * i + 100 * j + 50 * j2 500 * i 500 i 100 * j 100 j 50 * j2 50 j2 {
						res++;
					} res++ res System.out.println(res) System.out.println System.out System System.out res String[] args args public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		int C = sc.nextInt();
		int X = sc.nextInt();
		int res = 0;
		for (int i = 0; i <= A; i++) {
			for (int j = 0; j <= B; j++) {
				for (int j2 = 0; j2 <= C; j2++) {
					if (X == (500 * i + 100 * j + 50 * j2)) {
						res++;
					}
				}
			}

		}
		System.out.println(res);
	}
} public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		int C = sc.nextInt();
		int X = sc.nextInt();
		int res = 0;
		for (int i = 0; i <= A; i++) {
			for (int j = 0; j <= B; j++) {
				for (int j2 = 0; j2 <= C; j2++) {
					if (X == (500 * i + 100 * j + 50 * j2)) {
						res++;
					}
				}
			}

		}
		System.out.println(res);
	}
} Main

import java.util.Scanner;

public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		int C = sc.nextInt();
		int X = sc.nextInt();
		int res = 0;
		for (int i = 0; i <= A; i++) {
			for (int j = 0; j <= B; j++) {
				for (int j2 = 0; j2 <= C; j2++) {
					if (X == (500 * i + 100 * j + 50 * j2)) {
						res++;
					}
				}
			}

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