import java.util.*;

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 cnt=0;
		for (int a=0;a<A+1;a++) {
			for (int b=0;b<B+1;b++) {
				int x = X-a*500-b*100;
				if (x>=0 && x%50==0 && x/50<=C) {
					cnt++;
				}

			}
		}
		System.out.println(cnt);
	}
} import java.util.*; util.* java 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 cnt=0;
		for (int a=0;a<A+1;a++) {
			for (int b=0;b<B+1;b++) {
				int x = X-a*500-b*100;
				if (x>=0 && x%50==0 && x/50<=C) {
					cnt++;
				}

			}
		}
		System.out.println(cnt);
	}
} 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 cnt=0;
		for (int a=0;a<A+1;a++) {
			for (int b=0;b<B+1;b++) {
				int x = X-a*500-b*100;
				if (x>=0 && x%50==0 && x/50<=C) {
					cnt++;
				}

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

		int cnt=0;
		for (int a=0;a<A+1;a++) {
			for (int b=0;b<B+1;b++) {
				int x = X-a*500-b*100;
				if (x>=0 && x%50==0 && x/50<=C) {
					cnt++;
				}

			}
		}
		System.out.println(cnt);
	} 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 cnt=0; cnt 0 for (int a=0;a<A+1;a++) {
			for (int b=0;b<B+1;b++) {
				int x = X-a*500-b*100;
				if (x>=0 && x%50==0 && x/50<=C) {
					cnt++;
				}

			}
		} int a=0; int a=0; a 0 a<A+1 a A+1 A 1 a++ a++ a {
			for (int b=0;b<B+1;b++) {
				int x = X-a*500-b*100;
				if (x>=0 && x%50==0 && x/50<=C) {
					cnt++;
				}

			}
		} {
			for (int b=0;b<B+1;b++) {
				int x = X-a*500-b*100;
				if (x>=0 && x%50==0 && x/50<=C) {
					cnt++;
				}

			}
		} for (int b=0;b<B+1;b++) {
				int x = X-a*500-b*100;
				if (x>=0 && x%50==0 && x/50<=C) {
					cnt++;
				}

			} int b=0; int b=0; b 0 b<B+1 b B+1 B 1 b++ b++ b {
				int x = X-a*500-b*100;
				if (x>=0 && x%50==0 && x/50<=C) {
					cnt++;
				}

			} {
				int x = X-a*500-b*100;
				if (x>=0 && x%50==0 && x/50<=C) {
					cnt++;
				}

			} int x = X-a*500-b*100; x X-a*500-b*100 X-a*500-b*100 X a*500 a 500 b*100 b 100 if (x>=0 && x%50==0 && x/50<=C) {
					cnt++;
				} x>=0 && x%50==0 && x/50<=C x>=0 && x%50==0 && x/50<=C x>=0 x 0 x%50==0 x%50 x 50 0 x/50<=C x/50 x 50 C {
					cnt++;
				} cnt++ cnt System.out.println(cnt) System.out.println System.out System System.out cnt String[] args args
import java.util.*;

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 cnt=0;
		for (int a=0;a<A+1;a++) {
			for (int b=0;b<B+1;b++) {
				int x = X-a*500-b*100;
				if (x>=0 && x%50==0 && x/50<=C) {
					cnt++;
				}

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