#include <iostream>
#define rep(i,n) for(int i=0;i<(n);++i)

int main(){
  int a,b,c,x,temp,ans=0;scanf("%d%d%d%d",&a,&b,&c,&x);
  rep(i,a+1)rep(j,b+1){
    temp=x-i*500-j*100;
    if(temp>=0&&temp/50<=c){
      ans++;
    }
  }printf("%d\n",ans);
}