import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.util.stream.Stream;

public class Main {
  public static void main(String[] args) throws Exception {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
    int a = Integer.parseInt(br.readLine());
    int b = Integer.parseInt(br.readLine());
    int c = Integer.parseInt(br.readLine());
    int x = Integer.parseInt(br.readLine());
    int ans = 0;

    for (int i = 0; i <= a; i++) {
      for (int j = 0; j <= b; j++) {
        for (int j2 = 0; j2 <= c; j2++) {
          int total = 500*i + 100*j + 50*j2;
          if (total == x) ans++;
        }
      }
    }
    out.println(ans);
    out.close();
  }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.io.OutputStreamWriter; OutputStreamWriter java.io import java.io.PrintWriter; PrintWriter java.io import java.util.stream.Stream; Stream java.util.stream public class Main {
  public static void main(String[] args) throws Exception {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
    int a = Integer.parseInt(br.readLine());
    int b = Integer.parseInt(br.readLine());
    int c = Integer.parseInt(br.readLine());
    int x = Integer.parseInt(br.readLine());
    int ans = 0;

    for (int i = 0; i <= a; i++) {
      for (int j = 0; j <= b; j++) {
        for (int j2 = 0; j2 <= c; j2++) {
          int total = 500*i + 100*j + 50*j2;
          if (total == x) ans++;
        }
      }
    }
    out.println(ans);
    out.close();
  }
} Main public static void main(String[] args) throws Exception {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
    int a = Integer.parseInt(br.readLine());
    int b = Integer.parseInt(br.readLine());
    int c = Integer.parseInt(br.readLine());
    int x = Integer.parseInt(br.readLine());
    int ans = 0;

    for (int i = 0; i <= a; i++) {
      for (int j = 0; j <= b; j++) {
        for (int j2 = 0; j2 <= c; j2++) {
          int total = 500*i + 100*j + 50*j2;
          if (total == x) ans++;
        }
      }
    }
    out.println(ans);
    out.close();
  } main {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
    int a = Integer.parseInt(br.readLine());
    int b = Integer.parseInt(br.readLine());
    int c = Integer.parseInt(br.readLine());
    int x = Integer.parseInt(br.readLine());
    int ans = 0;

    for (int i = 0; i <= a; i++) {
      for (int j = 0; j <= b; j++) {
        for (int j2 = 0; j2 <= c; j2++) {
          int total = 500*i + 100*j + 50*j2;
          if (total == x) ans++;
        }
      }
    }
    out.println(ans);
    out.close();
  } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out)); out new PrintWriter(new OutputStreamWriter(System.out)) int a = Integer.parseInt(br.readLine()); a Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br int b = Integer.parseInt(br.readLine()); b Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br int c = Integer.parseInt(br.readLine()); c Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br int x = Integer.parseInt(br.readLine()); x Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br int ans = 0; ans 0 for (int i = 0; i <= a; i++) {
      for (int j = 0; j <= b; j++) {
        for (int j2 = 0; j2 <= c; j2++) {
          int total = 500*i + 100*j + 50*j2;
          if (total == x) ans++;
        }
      }
    } int i = 0; int i = 0; i 0 i <= a i a i++ i++ i {
      for (int j = 0; j <= b; j++) {
        for (int j2 = 0; j2 <= c; j2++) {
          int total = 500*i + 100*j + 50*j2;
          if (total == x) ans++;
        }
      }
    } {
      for (int j = 0; j <= b; j++) {
        for (int j2 = 0; j2 <= c; j2++) {
          int total = 500*i + 100*j + 50*j2;
          if (total == x) ans++;
        }
      }
    } for (int j = 0; j <= b; j++) {
        for (int j2 = 0; j2 <= c; j2++) {
          int total = 500*i + 100*j + 50*j2;
          if (total == x) ans++;
        }
      } int j = 0; int j = 0; j 0 j <= b j b j++ j++ j {
        for (int j2 = 0; j2 <= c; j2++) {
          int total = 500*i + 100*j + 50*j2;
          if (total == x) ans++;
        }
      } {
        for (int j2 = 0; j2 <= c; j2++) {
          int total = 500*i + 100*j + 50*j2;
          if (total == x) ans++;
        }
      } for (int j2 = 0; j2 <= c; j2++) {
          int total = 500*i + 100*j + 50*j2;
          if (total == x) ans++;
        } int j2 = 0; int j2 = 0; j2 0 j2 <= c j2 c j2++ j2++ j2 {
          int total = 500*i + 100*j + 50*j2;
          if (total == x) ans++;
        } {
          int total = 500*i + 100*j + 50*j2;
          if (total == x) ans++;
        } int total = 500*i + 100*j + 50*j2; total 500*i + 100*j + 50*j2 500*i + 100*j + 50*j2 500*i 500 i 100*j 100 j 50*j2 50 j2 if (total == x) ans++; total == x total x ans++ ans out.println(ans) out.println out ans out.close() out.close out String[] args args public class Main {
  public static void main(String[] args) throws Exception {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
    int a = Integer.parseInt(br.readLine());
    int b = Integer.parseInt(br.readLine());
    int c = Integer.parseInt(br.readLine());
    int x = Integer.parseInt(br.readLine());
    int ans = 0;

    for (int i = 0; i <= a; i++) {
      for (int j = 0; j <= b; j++) {
        for (int j2 = 0; j2 <= c; j2++) {
          int total = 500*i + 100*j + 50*j2;
          if (total == x) ans++;
        }
      }
    }
    out.println(ans);
    out.close();
  }
} public class Main {
  public static void main(String[] args) throws Exception {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
    int a = Integer.parseInt(br.readLine());
    int b = Integer.parseInt(br.readLine());
    int c = Integer.parseInt(br.readLine());
    int x = Integer.parseInt(br.readLine());
    int ans = 0;

    for (int i = 0; i <= a; i++) {
      for (int j = 0; j <= b; j++) {
        for (int j2 = 0; j2 <= c; j2++) {
          int total = 500*i + 100*j + 50*j2;
          if (total == x) ans++;
        }
      }
    }
    out.println(ans);
    out.close();
  }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.util.stream.Stream;

public class Main {
  public static void main(String[] args) throws Exception {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
    int a = Integer.parseInt(br.readLine());
    int b = Integer.parseInt(br.readLine());
    int c = Integer.parseInt(br.readLine());
    int x = Integer.parseInt(br.readLine());
    int ans = 0;

    for (int i = 0; i <= a; i++) {
      for (int j = 0; j <= b; j++) {
        for (int j2 = 0; j2 <= c; j2++) {
          int total = 500*i + 100*j + 50*j2;
          if (total == x) ans++;
        }
      }
    }
    out.println(ans);
    out.close();
  }
}