import java.util.*;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int int500 = sc.nextInt();
		int int100 = sc.nextInt();
		int int50 = sc.nextInt();
		int total = sc.nextInt();
		int count= 0;
		for(int a = 0 ; a <= int500 ;a++) {
			for(int b = 0 ; b <= int100;b++) {
				for(int c = 0; c <= int50;c++) {
					int sum = a*500 + b*100 + c*50;
					if(sum == total)count++;
				}
			}
		}
		System.out.println(count);
	}
} import java.util.*; util.* java public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int int500 = sc.nextInt();
		int int100 = sc.nextInt();
		int int50 = sc.nextInt();
		int total = sc.nextInt();
		int count= 0;
		for(int a = 0 ; a <= int500 ;a++) {
			for(int b = 0 ; b <= int100;b++) {
				for(int c = 0; c <= int50;c++) {
					int sum = a*500 + b*100 + c*50;
					if(sum == total)count++;
				}
			}
		}
		System.out.println(count);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int int500 = sc.nextInt();
		int int100 = sc.nextInt();
		int int50 = sc.nextInt();
		int total = sc.nextInt();
		int count= 0;
		for(int a = 0 ; a <= int500 ;a++) {
			for(int b = 0 ; b <= int100;b++) {
				for(int c = 0; c <= int50;c++) {
					int sum = a*500 + b*100 + c*50;
					if(sum == total)count++;
				}
			}
		}
		System.out.println(count);
	} main {
		Scanner sc = new Scanner(System.in);
		int int500 = sc.nextInt();
		int int100 = sc.nextInt();
		int int50 = sc.nextInt();
		int total = sc.nextInt();
		int count= 0;
		for(int a = 0 ; a <= int500 ;a++) {
			for(int b = 0 ; b <= int100;b++) {
				for(int c = 0; c <= int50;c++) {
					int sum = a*500 + b*100 + c*50;
					if(sum == total)count++;
				}
			}
		}
		System.out.println(count);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int int500 = sc.nextInt(); int500 sc.nextInt() sc.nextInt sc int int100 = sc.nextInt(); int100 sc.nextInt() sc.nextInt sc int int50 = sc.nextInt(); int50 sc.nextInt() sc.nextInt sc int total = sc.nextInt(); total sc.nextInt() sc.nextInt sc int count= 0; count 0 for(int a = 0 ; a <= int500 ;a++) {
			for(int b = 0 ; b <= int100;b++) {
				for(int c = 0; c <= int50;c++) {
					int sum = a*500 + b*100 + c*50;
					if(sum == total)count++;
				}
			}
		} int a = 0 ; int a = 0 ; a 0 a <= int500 a int500 a++ a++ a {
			for(int b = 0 ; b <= int100;b++) {
				for(int c = 0; c <= int50;c++) {
					int sum = a*500 + b*100 + c*50;
					if(sum == total)count++;
				}
			}
		} {
			for(int b = 0 ; b <= int100;b++) {
				for(int c = 0; c <= int50;c++) {
					int sum = a*500 + b*100 + c*50;
					if(sum == total)count++;
				}
			}
		} for(int b = 0 ; b <= int100;b++) {
				for(int c = 0; c <= int50;c++) {
					int sum = a*500 + b*100 + c*50;
					if(sum == total)count++;
				}
			} int b = 0 ; int b = 0 ; b 0 b <= int100 b int100 b++ b++ b {
				for(int c = 0; c <= int50;c++) {
					int sum = a*500 + b*100 + c*50;
					if(sum == total)count++;
				}
			} {
				for(int c = 0; c <= int50;c++) {
					int sum = a*500 + b*100 + c*50;
					if(sum == total)count++;
				}
			} for(int c = 0; c <= int50;c++) {
					int sum = a*500 + b*100 + c*50;
					if(sum == total)count++;
				} int c = 0; int c = 0; c 0 c <= int50 c int50 c++ c++ c {
					int sum = a*500 + b*100 + c*50;
					if(sum == total)count++;
				} {
					int sum = a*500 + b*100 + c*50;
					if(sum == total)count++;
				} int sum = a*500 + b*100 + c*50; sum a*500 + b*100 + c*50 a*500 + b*100 + c*50 a*500 a 500 b*100 b 100 c*50 c 50 if(sum == total)count++; sum == total sum total count++ count 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) {
		Scanner sc = new Scanner(System.in);
		int int500 = sc.nextInt();
		int int100 = sc.nextInt();
		int int50 = sc.nextInt();
		int total = sc.nextInt();
		int count= 0;
		for(int a = 0 ; a <= int500 ;a++) {
			for(int b = 0 ; b <= int100;b++) {
				for(int c = 0; c <= int50;c++) {
					int sum = a*500 + b*100 + c*50;
					if(sum == total)count++;
				}
			}
		}
		System.out.println(count);
	}
} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int int500 = sc.nextInt();
		int int100 = sc.nextInt();
		int int50 = sc.nextInt();
		int total = sc.nextInt();
		int count= 0;
		for(int a = 0 ; a <= int500 ;a++) {
			for(int b = 0 ; b <= int100;b++) {
				for(int c = 0; c <= int50;c++) {
					int sum = a*500 + b*100 + c*50;
					if(sum == total)count++;
				}
			}
		}
		System.out.println(count);
	}
} Main
import java.util.*;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int int500 = sc.nextInt();
		int int100 = sc.nextInt();
		int int50 = sc.nextInt();
		int total = sc.nextInt();
		int count= 0;
		for(int a = 0 ; a <= int500 ;a++) {
			for(int b = 0 ; b <= int100;b++) {
				for(int c = 0; c <= int50;c++) {
					int sum = a*500 + b*100 + c*50;
					if(sum == total)count++;
				}
			}
		}
		System.out.println(count);
	}
}