import java.util.Scanner;

/**
 * Built using CHelper plug-in
 * Actual solution is at the top
 */
public class Main {
    public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	int A = sc.nextInt(); //500
    	int B = sc.nextInt(); //100
    	int C = sc.nextInt(); //50
    	int X = sc.nextInt();
    	
    	int total_a;
    	int total_b;
    	int total_c;
    	
    	int ans = 0;
    	
    	for(int cntA = 0;cntA <= A;cntA++){
    		total_a = cntA * 500;
    		if(total_a > X){
    			break;
    		}
    		for(int cntB = 0;cntB <= B;cntB++){
    			total_b = cntB * 100;
    			if(total_a + total_b > X){
    				break;
    			}
    			for(int cntC = 0;cntC <= C;cntC++){
        			total_c = cntC * 50;
        			if(total_a + total_b + total_c == X){
        				++ans;
        			}
        			
        		}
    		}
    	}
    	System.out.println(ans);
    }
}


/tmp/hf-datasets-cache/medium/datasets/42704881117311-config-parquet-and-info-qiankunmu-Project_CodeNet-896c9d36/hub/datasets--qiankunmu--Project_CodeNet_Python800_and_Java250/snapshots/c899fde44a77ba1cc14973ed3de064e4ff3aadc7/Project_CodeNet_Java250.tar.gz