import "dart:io";

main(){
  int a = int.parse(stdin.readLineSync());
  int b = int.parse(stdin.readLineSync());
  int c = int.parse(stdin.readLineSync());
  int x = int.parse(stdin.readLineSync());

  int ans = 0;
  for (int i = 0; i <= a; i++){
    for (int j = 0; j <= b; j++){
      /*
      if ((x - 500 * i - 100 * j) % 50 == 0 && (x - 500 * i - 100 * j) / 50 <= c){
        ans++;
      }
      */
      for (int k = 0; k <= c; k++){
        if (500 * i + 100 * j + 50 * k == x) ans++;
      }
    }
  }
  print(ans);
}
