import java.util.*;

public class Main {
	public static void main(String[] args) {
		int i, j, k;
		Scanner sc = new Scanner(System.in);
		int a = Integer.parseInt(sc.next());
		int b = Integer.parseInt(sc.next());
		int c = Integer.parseInt(sc.next());
		int x = Integer.parseInt(sc.next());
		sc.close();
		int cnt = 0;
		for(i=0;i<=a;i++) {
			for(j=0;j<=b;j++) {
				for(k=0;k<=c;k++) {
					if(x==i*500+j*100+k*50) {
						cnt++;
					}
				}
			}
		}
		System.out.println(cnt);
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args) {
		int i, j, k;
		Scanner sc = new Scanner(System.in);
		int a = Integer.parseInt(sc.next());
		int b = Integer.parseInt(sc.next());
		int c = Integer.parseInt(sc.next());
		int x = Integer.parseInt(sc.next());
		sc.close();
		int cnt = 0;
		for(i=0;i<=a;i++) {
			for(j=0;j<=b;j++) {
				for(k=0;k<=c;k++) {
					if(x==i*500+j*100+k*50) {
						cnt++;
					}
				}
			}
		}
		System.out.println(cnt);
	}
} Main public static void main(String[] args) {
		int i, j, k;
		Scanner sc = new Scanner(System.in);
		int a = Integer.parseInt(sc.next());
		int b = Integer.parseInt(sc.next());
		int c = Integer.parseInt(sc.next());
		int x = Integer.parseInt(sc.next());
		sc.close();
		int cnt = 0;
		for(i=0;i<=a;i++) {
			for(j=0;j<=b;j++) {
				for(k=0;k<=c;k++) {
					if(x==i*500+j*100+k*50) {
						cnt++;
					}
				}
			}
		}
		System.out.println(cnt);
	} main {
		int i, j, k;
		Scanner sc = new Scanner(System.in);
		int a = Integer.parseInt(sc.next());
		int b = Integer.parseInt(sc.next());
		int c = Integer.parseInt(sc.next());
		int x = Integer.parseInt(sc.next());
		sc.close();
		int cnt = 0;
		for(i=0;i<=a;i++) {
			for(j=0;j<=b;j++) {
				for(k=0;k<=c;k++) {
					if(x==i*500+j*100+k*50) {
						cnt++;
					}
				}
			}
		}
		System.out.println(cnt);
	} int i i j j k; k Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = Integer.parseInt(sc.next()); a Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int b = Integer.parseInt(sc.next()); b Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int c = Integer.parseInt(sc.next()); c Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int x = Integer.parseInt(sc.next()); x Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc sc.close() sc.close sc int cnt = 0; cnt 0 for(i=0;i<=a;i++) {
			for(j=0;j<=b;j++) {
				for(k=0;k<=c;k++) {
					if(x==i*500+j*100+k*50) {
						cnt++;
					}
				}
			}
		} i=0; i=0 i 0 i<=a i a i++ i++ i {
			for(j=0;j<=b;j++) {
				for(k=0;k<=c;k++) {
					if(x==i*500+j*100+k*50) {
						cnt++;
					}
				}
			}
		} {
			for(j=0;j<=b;j++) {
				for(k=0;k<=c;k++) {
					if(x==i*500+j*100+k*50) {
						cnt++;
					}
				}
			}
		} for(j=0;j<=b;j++) {
				for(k=0;k<=c;k++) {
					if(x==i*500+j*100+k*50) {
						cnt++;
					}
				}
			} j=0; j=0 j 0 j<=b j b j++ j++ j {
				for(k=0;k<=c;k++) {
					if(x==i*500+j*100+k*50) {
						cnt++;
					}
				}
			} {
				for(k=0;k<=c;k++) {
					if(x==i*500+j*100+k*50) {
						cnt++;
					}
				}
			} for(k=0;k<=c;k++) {
					if(x==i*500+j*100+k*50) {
						cnt++;
					}
				} k=0; k=0 k 0 k<=c k c k++ k++ k {
					if(x==i*500+j*100+k*50) {
						cnt++;
					}
				} {
					if(x==i*500+j*100+k*50) {
						cnt++;
					}
				} if(x==i*500+j*100+k*50) {
						cnt++;
					} x==i*500+j*100+k*50 x i*500+j*100+k*50 i*500+j*100+k*50 i*500 i 500 j*100 j 100 k*50 k 50 {
						cnt++;
					} cnt++ cnt System.out.println(cnt) System.out.println System.out System System.out cnt String[] args args public class Main {
	public static void main(String[] args) {
		int i, j, k;
		Scanner sc = new Scanner(System.in);
		int a = Integer.parseInt(sc.next());
		int b = Integer.parseInt(sc.next());
		int c = Integer.parseInt(sc.next());
		int x = Integer.parseInt(sc.next());
		sc.close();
		int cnt = 0;
		for(i=0;i<=a;i++) {
			for(j=0;j<=b;j++) {
				for(k=0;k<=c;k++) {
					if(x==i*500+j*100+k*50) {
						cnt++;
					}
				}
			}
		}
		System.out.println(cnt);
	}
} public class Main {
	public static void main(String[] args) {
		int i, j, k;
		Scanner sc = new Scanner(System.in);
		int a = Integer.parseInt(sc.next());
		int b = Integer.parseInt(sc.next());
		int c = Integer.parseInt(sc.next());
		int x = Integer.parseInt(sc.next());
		sc.close();
		int cnt = 0;
		for(i=0;i<=a;i++) {
			for(j=0;j<=b;j++) {
				for(k=0;k<=c;k++) {
					if(x==i*500+j*100+k*50) {
						cnt++;
					}
				}
			}
		}
		System.out.println(cnt);
	}
} Main
import java.util.*;

public class Main {
	public static void main(String[] args) {
		int i, j, k;
		Scanner sc = new Scanner(System.in);
		int a = Integer.parseInt(sc.next());
		int b = Integer.parseInt(sc.next());
		int c = Integer.parseInt(sc.next());
		int x = Integer.parseInt(sc.next());
		sc.close();
		int cnt = 0;
		for(i=0;i<=a;i++) {
			for(j=0;j<=b;j++) {
				for(k=0;k<=c;k++) {
					if(x==i*500+j*100+k*50) {
						cnt++;
					}
				}
			}
		}
		System.out.println(cnt);
	}
}