import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();
		int x = scan.nextInt();
		System.out.println(ans(a, b, c, x));
	}
	static int ans(int a , int b, int c , int x) {
		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 work = i * 500 + j * 100 + k * 50;
					if(work == x) ans++;
				}
			}
		}
		return ans;
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();
		int x = scan.nextInt();
		System.out.println(ans(a, b, c, x));
	}
	static int ans(int a , int b, int c , int x) {
		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 work = i * 500 + j * 100 + k * 50;
					if(work == x) ans++;
				}
			}
		}
		return ans;
	}
} Main public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();
		int x = scan.nextInt();
		System.out.println(ans(a, b, c, x));
	} main {
		// TODO Auto-generated method stub
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();
		int x = scan.nextInt();
		System.out.println(ans(a, b, c, x));
	} 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 System.out.println(ans(a, b, c, x)) System.out.println System.out System System.out ans(a, b, c, x) ans a b c x String[] args args static int ans(int a , int b, int c , int x) {
		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 work = i * 500 + j * 100 + k * 50;
					if(work == x) ans++;
				}
			}
		}
		return ans;
	} ans {
		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 work = i * 500 + j * 100 + k * 50;
					if(work == x) ans++;
				}
			}
		}
		return ans;
	} 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 work = i * 500 + j * 100 + k * 50;
					if(work == 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 work = i * 500 + j * 100 + k * 50;
					if(work == x) ans++;
				}
			}
		} {
			for(int j = 0; j <= b; j++) {
				for(int k = 0; k <= c; k++) {
					int work = i * 500 + j * 100 + k * 50;
					if(work == x) ans++;
				}
			}
		} for(int j = 0; j <= b; j++) {
				for(int k = 0; k <= c; k++) {
					int work = i * 500 + j * 100 + k * 50;
					if(work == 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 work = i * 500 + j * 100 + k * 50;
					if(work == x) ans++;
				}
			} {
				for(int k = 0; k <= c; k++) {
					int work = i * 500 + j * 100 + k * 50;
					if(work == x) ans++;
				}
			} for(int k = 0; k <= c; k++) {
					int work = i * 500 + j * 100 + k * 50;
					if(work == x) ans++;
				} int k = 0; int k = 0; k 0 k <= c k c k++ k++ k {
					int work = i * 500 + j * 100 + k * 50;
					if(work == x) ans++;
				} {
					int work = i * 500 + j * 100 + k * 50;
					if(work == x) ans++;
				} int work = i * 500 + j * 100 + k * 50; work 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(work == x) ans++; work == x work x ans++ ans return ans; ans int a a int b b int c c int x x public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();
		int x = scan.nextInt();
		System.out.println(ans(a, b, c, x));
	}
	static int ans(int a , int b, int c , int x) {
		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 work = i * 500 + j * 100 + k * 50;
					if(work == x) ans++;
				}
			}
		}
		return ans;
	}
} public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();
		int x = scan.nextInt();
		System.out.println(ans(a, b, c, x));
	}
	static int ans(int a , int b, int c , int x) {
		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 work = i * 500 + j * 100 + k * 50;
					if(work == x) ans++;
				}
			}
		}
		return ans;
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();
		int x = scan.nextInt();
		System.out.println(ans(a, b, c, x));
	}
	static int ans(int a , int b, int c , int x) {
		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 work = i * 500 + j * 100 + k * 50;
					if(work == x) ans++;
				}
			}
		}
		return ans;
	}
}
