import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		Integer a = sc.nextInt();
		Integer b = sc.nextInt();
		Integer c = sc.nextInt();
		Integer x = sc.nextInt();
		Integer count = 0;
		
		for(int ia = 0; ia <= a; ia ++) {
			for(int ib = 0; ib <= b; ib ++) {
				for(int ic = 0; ic <= c; ic ++) {
					int total = ia * 500 + ib * 100 + ic * 50;
					if(total == x) {
						count ++;
					}
				}
			}
		}
		System.out.println(count);
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		Integer a = sc.nextInt();
		Integer b = sc.nextInt();
		Integer c = sc.nextInt();
		Integer x = sc.nextInt();
		Integer count = 0;
		
		for(int ia = 0; ia <= a; ia ++) {
			for(int ib = 0; ib <= b; ib ++) {
				for(int ic = 0; ic <= c; ic ++) {
					int total = ia * 500 + ib * 100 + ic * 50;
					if(total == x) {
						count ++;
					}
				}
			}
		}
		System.out.println(count);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		Integer a = sc.nextInt();
		Integer b = sc.nextInt();
		Integer c = sc.nextInt();
		Integer x = sc.nextInt();
		Integer count = 0;
		
		for(int ia = 0; ia <= a; ia ++) {
			for(int ib = 0; ib <= b; ib ++) {
				for(int ic = 0; ic <= c; ic ++) {
					int total = ia * 500 + ib * 100 + ic * 50;
					if(total == x) {
						count ++;
					}
				}
			}
		}
		System.out.println(count);
	} main {
		Scanner sc = new Scanner(System.in);
		Integer a = sc.nextInt();
		Integer b = sc.nextInt();
		Integer c = sc.nextInt();
		Integer x = sc.nextInt();
		Integer count = 0;
		
		for(int ia = 0; ia <= a; ia ++) {
			for(int ib = 0; ib <= b; ib ++) {
				for(int ic = 0; ic <= c; ic ++) {
					int total = ia * 500 + ib * 100 + ic * 50;
					if(total == x) {
						count ++;
					}
				}
			}
		}
		System.out.println(count);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) Integer a = sc.nextInt(); a sc.nextInt() sc.nextInt sc Integer b = sc.nextInt(); b sc.nextInt() sc.nextInt sc Integer c = sc.nextInt(); c sc.nextInt() sc.nextInt sc Integer x = sc.nextInt(); x sc.nextInt() sc.nextInt sc Integer count = 0; count 0 for(int ia = 0; ia <= a; ia ++) {
			for(int ib = 0; ib <= b; ib ++) {
				for(int ic = 0; ic <= c; ic ++) {
					int total = ia * 500 + ib * 100 + ic * 50;
					if(total == x) {
						count ++;
					}
				}
			}
		} int ia = 0; int ia = 0; ia 0 ia <= a ia a ia ++ ia ++ ia {
			for(int ib = 0; ib <= b; ib ++) {
				for(int ic = 0; ic <= c; ic ++) {
					int total = ia * 500 + ib * 100 + ic * 50;
					if(total == x) {
						count ++;
					}
				}
			}
		} {
			for(int ib = 0; ib <= b; ib ++) {
				for(int ic = 0; ic <= c; ic ++) {
					int total = ia * 500 + ib * 100 + ic * 50;
					if(total == x) {
						count ++;
					}
				}
			}
		} for(int ib = 0; ib <= b; ib ++) {
				for(int ic = 0; ic <= c; ic ++) {
					int total = ia * 500 + ib * 100 + ic * 50;
					if(total == x) {
						count ++;
					}
				}
			} int ib = 0; int ib = 0; ib 0 ib <= b ib b ib ++ ib ++ ib {
				for(int ic = 0; ic <= c; ic ++) {
					int total = ia * 500 + ib * 100 + ic * 50;
					if(total == x) {
						count ++;
					}
				}
			} {
				for(int ic = 0; ic <= c; ic ++) {
					int total = ia * 500 + ib * 100 + ic * 50;
					if(total == x) {
						count ++;
					}
				}
			} for(int ic = 0; ic <= c; ic ++) {
					int total = ia * 500 + ib * 100 + ic * 50;
					if(total == x) {
						count ++;
					}
				} int ic = 0; int ic = 0; ic 0 ic <= c ic c ic ++ ic ++ ic {
					int total = ia * 500 + ib * 100 + ic * 50;
					if(total == x) {
						count ++;
					}
				} {
					int total = ia * 500 + ib * 100 + ic * 50;
					if(total == x) {
						count ++;
					}
				} int total = ia * 500 + ib * 100 + ic * 50; total ia * 500 + ib * 100 + ic * 50 ia * 500 + ib * 100 + ic * 50 ia * 500 ia 500 ib * 100 ib 100 ic * 50 ic 50 if(total == x) {
						count ++;
					} total == x total x {
						count ++;
					} 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);
		Integer a = sc.nextInt();
		Integer b = sc.nextInt();
		Integer c = sc.nextInt();
		Integer x = sc.nextInt();
		Integer count = 0;
		
		for(int ia = 0; ia <= a; ia ++) {
			for(int ib = 0; ib <= b; ib ++) {
				for(int ic = 0; ic <= c; ic ++) {
					int total = ia * 500 + ib * 100 + ic * 50;
					if(total == x) {
						count ++;
					}
				}
			}
		}
		System.out.println(count);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		Integer a = sc.nextInt();
		Integer b = sc.nextInt();
		Integer c = sc.nextInt();
		Integer x = sc.nextInt();
		Integer count = 0;
		
		for(int ia = 0; ia <= a; ia ++) {
			for(int ib = 0; ib <= b; ib ++) {
				for(int ic = 0; ic <= c; ic ++) {
					int total = ia * 500 + ib * 100 + ic * 50;
					if(total == x) {
						count ++;
					}
				}
			}
		}
		System.out.println(count);
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		Integer a = sc.nextInt();
		Integer b = sc.nextInt();
		Integer c = sc.nextInt();
		Integer x = sc.nextInt();
		Integer count = 0;
		
		for(int ia = 0; ia <= a; ia ++) {
			for(int ib = 0; ib <= b; ib ++) {
				for(int ic = 0; ic <= c; ic ++) {
					int total = ia * 500 + ib * 100 + ic * 50;
					if(total == x) {
						count ++;
					}
				}
			}
		}
		System.out.println(count);
	}
}