import java.util.Scanner;

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

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

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

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

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

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

		int count = 0;
		for(int i=0; i<=A; i++){
			for(int j=0; j<=B; j++){
				for(int k=0; k<=C; k++){
					if(X == (500*i + 100*j + 50*k)){
						count += 1;
					}
				}
			}
		}
		System.out.println(count);
	}
} Main
import java.util.Scanner;

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

		int count = 0;
		for(int i=0; i<=A; i++){
			for(int j=0; j<=B; j++){
				for(int k=0; k<=C; k++){
					if(X == (500*i + 100*j + 50*k)){
						count += 1;
					}
				}
			}
		}
		System.out.println(count);
	}
}