import java.util.Scanner;

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


		System.out.print(ans);
		reader.close();
	}
}


 import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner reader = new Scanner(System.in);
		int A = reader.nextInt();
		int B = reader.nextInt();
		int C = reader.nextInt();
		int X = reader.nextInt();
		int ans = 0;
		for (int i = 0; i <= A; i++) {
			for (int j = 0; j <= B; j++) {
				for (int k = 0; k <= C; k++) {
					int tmp = i * 500 + j * 100 + k * 50;
					if (tmp == X) {
						ans++;
					}
				}
			}
		}


		System.out.print(ans);
		reader.close();
	}
} Main public static void main(String[] args) {
		Scanner reader = new Scanner(System.in);
		int A = reader.nextInt();
		int B = reader.nextInt();
		int C = reader.nextInt();
		int X = reader.nextInt();
		int ans = 0;
		for (int i = 0; i <= A; i++) {
			for (int j = 0; j <= B; j++) {
				for (int k = 0; k <= C; k++) {
					int tmp = i * 500 + j * 100 + k * 50;
					if (tmp == X) {
						ans++;
					}
				}
			}
		}


		System.out.print(ans);
		reader.close();
	} main {
		Scanner reader = new Scanner(System.in);
		int A = reader.nextInt();
		int B = reader.nextInt();
		int C = reader.nextInt();
		int X = reader.nextInt();
		int ans = 0;
		for (int i = 0; i <= A; i++) {
			for (int j = 0; j <= B; j++) {
				for (int k = 0; k <= C; k++) {
					int tmp = i * 500 + j * 100 + k * 50;
					if (tmp == X) {
						ans++;
					}
				}
			}
		}


		System.out.print(ans);
		reader.close();
	} Scanner reader = new Scanner(System.in); reader new Scanner(System.in) int A = reader.nextInt(); A reader.nextInt() reader.nextInt reader int B = reader.nextInt(); B reader.nextInt() reader.nextInt reader int C = reader.nextInt(); C reader.nextInt() reader.nextInt reader int X = reader.nextInt(); X reader.nextInt() reader.nextInt reader int ans = 0; ans 0 for (int i = 0; i <= A; i++) {
			for (int j = 0; j <= B; j++) {
				for (int k = 0; k <= C; k++) {
					int tmp = i * 500 + j * 100 + k * 50;
					if (tmp == X) {
						ans++;
					}
				}
			}
		} int i = 0; int i = 0; i 0 i <= A i A i++ i++ i {
			for (int j = 0; j <= B; j++) {
				for (int k = 0; k <= C; k++) {
					int tmp = i * 500 + j * 100 + k * 50;
					if (tmp == X) {
						ans++;
					}
				}
			}
		} {
			for (int j = 0; j <= B; j++) {
				for (int k = 0; k <= C; k++) {
					int tmp = i * 500 + j * 100 + k * 50;
					if (tmp == X) {
						ans++;
					}
				}
			}
		} for (int j = 0; j <= B; j++) {
				for (int k = 0; k <= C; k++) {
					int tmp = i * 500 + j * 100 + k * 50;
					if (tmp == X) {
						ans++;
					}
				}
			} int j = 0; int j = 0; j 0 j <= B j B j++ j++ j {
				for (int k = 0; k <= C; k++) {
					int tmp = i * 500 + j * 100 + k * 50;
					if (tmp == X) {
						ans++;
					}
				}
			} {
				for (int k = 0; k <= C; k++) {
					int tmp = i * 500 + j * 100 + k * 50;
					if (tmp == X) {
						ans++;
					}
				}
			} for (int k = 0; k <= C; k++) {
					int tmp = i * 500 + j * 100 + k * 50;
					if (tmp == X) {
						ans++;
					}
				} int k = 0; int k = 0; k 0 k <= C k C k++ k++ k {
					int tmp = i * 500 + j * 100 + k * 50;
					if (tmp == X) {
						ans++;
					}
				} {
					int tmp = i * 500 + j * 100 + k * 50;
					if (tmp == X) {
						ans++;
					}
				} int tmp = i * 500 + j * 100 + k * 50; tmp i * 500 + j * 100 + k * 50 i * 500 + j * 100 + k * 50 i * 500 i 500 j * 100 j 100 k * 50 k 50 if (tmp == X) {
						ans++;
					} tmp == X tmp X {
						ans++;
					} ans++ ans System.out.print(ans) System.out.print System.out System System.out ans reader.close() reader.close reader String[] args args public class Main {
	public static void main(String[] args) {
		Scanner reader = new Scanner(System.in);
		int A = reader.nextInt();
		int B = reader.nextInt();
		int C = reader.nextInt();
		int X = reader.nextInt();
		int ans = 0;
		for (int i = 0; i <= A; i++) {
			for (int j = 0; j <= B; j++) {
				for (int k = 0; k <= C; k++) {
					int tmp = i * 500 + j * 100 + k * 50;
					if (tmp == X) {
						ans++;
					}
				}
			}
		}


		System.out.print(ans);
		reader.close();
	}
} public class Main {
	public static void main(String[] args) {
		Scanner reader = new Scanner(System.in);
		int A = reader.nextInt();
		int B = reader.nextInt();
		int C = reader.nextInt();
		int X = reader.nextInt();
		int ans = 0;
		for (int i = 0; i <= A; i++) {
			for (int j = 0; j <= B; j++) {
				for (int k = 0; k <= C; k++) {
					int tmp = i * 500 + j * 100 + k * 50;
					if (tmp == X) {
						ans++;
					}
				}
			}
		}


		System.out.print(ans);
		reader.close();
	}
} Main
import java.util.Scanner;

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


		System.out.print(ans);
		reader.close();
	}
}



