#include<bits/stdc++.h>
using namespace std;
int a,b,c,x,num=0;
int main(){
	cin>>a>>b>>c>>x;
	for(int i=0;i<=a and i<=x/500;i++)
		for(int j=0;j<=b and j<=x/100;j++){
			int k=(x-i*500-j*100)/50;
			if( k>=0 and k<=c)num++;
		}
	cout<<num++;
			
}