import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Deque;

public class Main {

	public static void main(String args[]) throws IOException {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		// String str[] = br.readLine().split(" ");
		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 count = 0;

		for (int i = 0; i <= a; i++) {
			for (int j = 0; j <= b; j++) {
				for (int k = 0; k <= c; k++) {
					if (x == (i * 500 + j * 100 + k * 50)) {
						count++;
					}
				}
			}
		}
		System.out.println(count);
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.ArrayDeque; ArrayDeque java.util import java.util.ArrayList; ArrayList java.util import java.util.Deque; Deque java.util public class Main {

	public static void main(String args[]) throws IOException {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		// String str[] = br.readLine().split(" ");
		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 count = 0;

		for (int i = 0; i <= a; i++) {
			for (int j = 0; j <= b; j++) {
				for (int k = 0; k <= c; k++) {
					if (x == (i * 500 + j * 100 + k * 50)) {
						count++;
					}
				}
			}
		}
		System.out.println(count);
	}
} Main public static void main(String args[]) throws IOException {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		// String str[] = br.readLine().split(" ");
		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 count = 0;

		for (int i = 0; i <= a; i++) {
			for (int j = 0; j <= b; j++) {
				for (int k = 0; k <= c; k++) {
					if (x == (i * 500 + j * 100 + k * 50)) {
						count++;
					}
				}
			}
		}
		System.out.println(count);
	} main {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		// String str[] = br.readLine().split(" ");
		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 count = 0;

		for (int i = 0; i <= a; i++) {
			for (int j = 0; j <= b; j++) {
				for (int k = 0; k <= c; k++) {
					if (x == (i * 500 + j * 100 + k * 50)) {
						count++;
					}
				}
			}
		}
		System.out.println(count);
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) 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 count = 0; count 0 for (int i = 0; i <= a; i++) {
			for (int j = 0; j <= b; j++) {
				for (int k = 0; k <= c; k++) {
					if (x == (i * 500 + j * 100 + k * 50)) {
						count++;
					}
				}
			}
		} int i = 0; int i = 0; i 0 i <= a i a i++ i++ i {
			for (int j = 0; j <= b; j++) {
				for (int k = 0; k <= c; k++) {
					if (x == (i * 500 + j * 100 + k * 50)) {
						count++;
					}
				}
			}
		} {
			for (int j = 0; j <= b; j++) {
				for (int k = 0; k <= c; k++) {
					if (x == (i * 500 + j * 100 + k * 50)) {
						count++;
					}
				}
			}
		} for (int j = 0; j <= b; j++) {
				for (int k = 0; k <= c; k++) {
					if (x == (i * 500 + j * 100 + k * 50)) {
						count++;
					}
				}
			} int j = 0; int j = 0; j 0 j <= b j b j++ j++ j {
				for (int k = 0; k <= c; k++) {
					if (x == (i * 500 + j * 100 + k * 50)) {
						count++;
					}
				}
			} {
				for (int k = 0; k <= c; k++) {
					if (x == (i * 500 + j * 100 + k * 50)) {
						count++;
					}
				}
			} for (int k = 0; k <= c; k++) {
					if (x == (i * 500 + j * 100 + k * 50)) {
						count++;
					}
				} int k = 0; int k = 0; k 0 k <= c k c k++ k++ k {
					if (x == (i * 500 + j * 100 + k * 50)) {
						count++;
					}
				} {
					if (x == (i * 500 + j * 100 + k * 50)) {
						count++;
					}
				} if (x == (i * 500 + j * 100 + k * 50)) {
						count++;
					} x == (i * 500 + j * 100 + k * 50) x (i * 500 + j * 100 + k * 50) i * 500 + j * 100 + k * 50 i * 500 i 500 j * 100 j 100 k * 50 k 50 {
						count++;
					} count++ count System.out.println(count) System.out.println System.out System System.out count String args[] args public class Main {

	public static void main(String args[]) throws IOException {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		// String str[] = br.readLine().split(" ");
		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 count = 0;

		for (int i = 0; i <= a; i++) {
			for (int j = 0; j <= b; j++) {
				for (int k = 0; k <= c; k++) {
					if (x == (i * 500 + j * 100 + k * 50)) {
						count++;
					}
				}
			}
		}
		System.out.println(count);
	}
} public class Main {

	public static void main(String args[]) throws IOException {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		// String str[] = br.readLine().split(" ");
		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 count = 0;

		for (int i = 0; i <= a; i++) {
			for (int j = 0; j <= b; j++) {
				for (int k = 0; k <= c; k++) {
					if (x == (i * 500 + j * 100 + k * 50)) {
						count++;
					}
				}
			}
		}
		System.out.println(count);
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Deque;

public class Main {

	public static void main(String args[]) throws IOException {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		// String str[] = br.readLine().split(" ");
		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 count = 0;

		for (int i = 0; i <= a; i++) {
			for (int j = 0; j <= b; j++) {
				for (int k = 0; k <= c; k++) {
					if (x == (i * 500 + j * 100 + k * 50)) {
						count++;
					}
				}
			}
		}
		System.out.println(count);
	}
}