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 l, m;
    	      int root = 0;
    	      for(int i=0; i<=a; i++) {
    	    	  l = 500 * i;
    	    	  if(l > x) {
    	    	  break;
    	    	  }
    	    	  for(int j=0; j<=b; j++) {
    	    		  m = l + 100*j;
    	    		  if(m > x) {
    	    			  break;
    	    		  }
    	    		  if((x-m) /50 <= c){
    	    			  root++;
    	    		  }
    	    	  }
    	      }
	      System.out.println(root);
	}
} 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 l, m;
    	      int root = 0;
    	      for(int i=0; i<=a; i++) {
    	    	  l = 500 * i;
    	    	  if(l > x) {
    	    	  break;
    	    	  }
    	    	  for(int j=0; j<=b; j++) {
    	    		  m = l + 100*j;
    	    		  if(m > x) {
    	    			  break;
    	    		  }
    	    		  if((x-m) /50 <= c){
    	    			  root++;
    	    		  }
    	    	  }
    	      }
	      System.out.println(root);
	}
} 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 l, m;
    	      int root = 0;
    	      for(int i=0; i<=a; i++) {
    	    	  l = 500 * i;
    	    	  if(l > x) {
    	    	  break;
    	    	  }
    	    	  for(int j=0; j<=b; j++) {
    	    		  m = l + 100*j;
    	    		  if(m > x) {
    	    			  break;
    	    		  }
    	    		  if((x-m) /50 <= c){
    	    			  root++;
    	    		  }
    	    	  }
    	      }
	      System.out.println(root);
	} main {
	      Scanner sc = new Scanner(System.in);
	      int a = sc.nextInt();
	      int b = sc.nextInt();
	      int c = sc.nextInt();
    	      int x = sc.nextInt();
    	      int l, m;
    	      int root = 0;
    	      for(int i=0; i<=a; i++) {
    	    	  l = 500 * i;
    	    	  if(l > x) {
    	    	  break;
    	    	  }
    	    	  for(int j=0; j<=b; j++) {
    	    		  m = l + 100*j;
    	    		  if(m > x) {
    	    			  break;
    	    		  }
    	    		  if((x-m) /50 <= c){
    	    			  root++;
    	    		  }
    	    	  }
    	      }
	      System.out.println(root);
	} 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 l l m; m int root = 0; root 0 for(int i=0; i<=a; i++) {
    	    	  l = 500 * i;
    	    	  if(l > x) {
    	    	  break;
    	    	  }
    	    	  for(int j=0; j<=b; j++) {
    	    		  m = l + 100*j;
    	    		  if(m > x) {
    	    			  break;
    	    		  }
    	    		  if((x-m) /50 <= c){
    	    			  root++;
    	    		  }
    	    	  }
    	      } int i=0; int i=0; i 0 i<=a i a i++ i++ i {
    	    	  l = 500 * i;
    	    	  if(l > x) {
    	    	  break;
    	    	  }
    	    	  for(int j=0; j<=b; j++) {
    	    		  m = l + 100*j;
    	    		  if(m > x) {
    	    			  break;
    	    		  }
    	    		  if((x-m) /50 <= c){
    	    			  root++;
    	    		  }
    	    	  }
    	      } {
    	    	  l = 500 * i;
    	    	  if(l > x) {
    	    	  break;
    	    	  }
    	    	  for(int j=0; j<=b; j++) {
    	    		  m = l + 100*j;
    	    		  if(m > x) {
    	    			  break;
    	    		  }
    	    		  if((x-m) /50 <= c){
    	    			  root++;
    	    		  }
    	    	  }
    	      } l = 500 * i l 500 * i 500 i if(l > x) {
    	    	  break;
    	    	  } l > x l x {
    	    	  break;
    	    	  } break; for(int j=0; j<=b; j++) {
    	    		  m = l + 100*j;
    	    		  if(m > x) {
    	    			  break;
    	    		  }
    	    		  if((x-m) /50 <= c){
    	    			  root++;
    	    		  }
    	    	  } int j=0; int j=0; j 0 j<=b j b j++ j++ j {
    	    		  m = l + 100*j;
    	    		  if(m > x) {
    	    			  break;
    	    		  }
    	    		  if((x-m) /50 <= c){
    	    			  root++;
    	    		  }
    	    	  } {
    	    		  m = l + 100*j;
    	    		  if(m > x) {
    	    			  break;
    	    		  }
    	    		  if((x-m) /50 <= c){
    	    			  root++;
    	    		  }
    	    	  } m = l + 100*j m l + 100*j l 100*j 100 j if(m > x) {
    	    			  break;
    	    		  } m > x m x {
    	    			  break;
    	    		  } break; if((x-m) /50 <= c){
    	    			  root++;
    	    		  } (x-m) /50 <= c (x-m) /50 (x-m) x m 50 c {
    	    			  root++;
    	    		  } root++ root System.out.println(root) System.out.println System.out System System.out root 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 l, m;
    	      int root = 0;
    	      for(int i=0; i<=a; i++) {
    	    	  l = 500 * i;
    	    	  if(l > x) {
    	    	  break;
    	    	  }
    	    	  for(int j=0; j<=b; j++) {
    	    		  m = l + 100*j;
    	    		  if(m > x) {
    	    			  break;
    	    		  }
    	    		  if((x-m) /50 <= c){
    	    			  root++;
    	    		  }
    	    	  }
    	      }
	      System.out.println(root);
	}
} 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 l, m;
    	      int root = 0;
    	      for(int i=0; i<=a; i++) {
    	    	  l = 500 * i;
    	    	  if(l > x) {
    	    	  break;
    	    	  }
    	    	  for(int j=0; j<=b; j++) {
    	    		  m = l + 100*j;
    	    		  if(m > x) {
    	    			  break;
    	    		  }
    	    		  if((x-m) /50 <= c){
    	    			  root++;
    	    		  }
    	    	  }
    	      }
	      System.out.println(root);
	}
} 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 l, m;
    	      int root = 0;
    	      for(int i=0; i<=a; i++) {
    	    	  l = 500 * i;
    	    	  if(l > x) {
    	    	  break;
    	    	  }
    	    	  for(int j=0; j<=b; j++) {
    	    		  m = l + 100*j;
    	    		  if(m > x) {
    	    			  break;
    	    		  }
    	    		  if((x-m) /50 <= c){
    	    			  root++;
    	    		  }
    	    	  }
    	      }
	      System.out.println(root);
	}
}