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

 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 con =0;
		for (int i = 0; i <= A; i++) {
			for (int j = 0; j <= B; j++) {
				for (int k = 0; k <= C; k++) {
					if (X-(i*500+j*100+k*50)==0) {
						con++;
					}
				}
			}
		}
		System.out.println(con);
	}
} 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 con =0;
		for (int i = 0; i <= A; i++) {
			for (int j = 0; j <= B; j++) {
				for (int k = 0; k <= C; k++) {
					if (X-(i*500+j*100+k*50)==0) {
						con++;
					}
				}
			}
		}
		System.out.println(con);
	} main {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		int C = sc.nextInt();
		int X = sc.nextInt();
		int con =0;
		for (int i = 0; i <= A; i++) {
			for (int j = 0; j <= B; j++) {
				for (int k = 0; k <= C; k++) {
					if (X-(i*500+j*100+k*50)==0) {
						con++;
					}
				}
			}
		}
		System.out.println(con);
	} 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 con =0; con 0 for (int i = 0; i <= A; i++) {
			for (int j = 0; j <= B; j++) {
				for (int k = 0; k <= C; k++) {
					if (X-(i*500+j*100+k*50)==0) {
						con++;
					}
				}
			}
		} 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++) {
					if (X-(i*500+j*100+k*50)==0) {
						con++;
					}
				}
			}
		} {
			for (int j = 0; j <= B; j++) {
				for (int k = 0; k <= C; k++) {
					if (X-(i*500+j*100+k*50)==0) {
						con++;
					}
				}
			}
		} for (int j = 0; j <= B; j++) {
				for (int k = 0; k <= C; k++) {
					if (X-(i*500+j*100+k*50)==0) {
						con++;
					}
				}
			} int j = 0; int j = 0; j 0 j <= B j B j++ j++ j {
				for (int k = 0; k <= C; k++) {
					if (X-(i*500+j*100+k*50)==0) {
						con++;
					}
				}
			} {
				for (int k = 0; k <= C; k++) {
					if (X-(i*500+j*100+k*50)==0) {
						con++;
					}
				}
			} for (int k = 0; k <= C; k++) {
					if (X-(i*500+j*100+k*50)==0) {
						con++;
					}
				} int k = 0; int k = 0; k 0 k <= C k C k++ k++ k {
					if (X-(i*500+j*100+k*50)==0) {
						con++;
					}
				} {
					if (X-(i*500+j*100+k*50)==0) {
						con++;
					}
				} if (X-(i*500+j*100+k*50)==0) {
						con++;
					} X-(i*500+j*100+k*50)==0 X-(i*500+j*100+k*50) X (i*500+j*100+k*50) i*500+j*100+k*50 i*500 i 500 j*100 j 100 k*50 k 50 0 {
						con++;
					} con++ con System.out.println(con) System.out.println System.out System System.out con 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 con =0;
		for (int i = 0; i <= A; i++) {
			for (int j = 0; j <= B; j++) {
				for (int k = 0; k <= C; k++) {
					if (X-(i*500+j*100+k*50)==0) {
						con++;
					}
				}
			}
		}
		System.out.println(con);
	}
} 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 con =0;
		for (int i = 0; i <= A; i++) {
			for (int j = 0; j <= B; j++) {
				for (int k = 0; k <= C; k++) {
					if (X-(i*500+j*100+k*50)==0) {
						con++;
					}
				}
			}
		}
		System.out.println(con);
	}
} 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 con =0;
		for (int i = 0; i <= A; i++) {
			for (int j = 0; j <= B; j++) {
				for (int k = 0; k <= C; k++) {
					if (X-(i*500+j*100+k*50)==0) {
						con++;
					}
				}
			}
		}
		System.out.println(con);
	}
}


