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