import java.util.*;
import java.util.stream.Collectors;
import java.io.*;
import java.nio.charset.StandardCharsets;

public class Main {
	public static void main(String[] args) throws IOException {
		InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);
		BufferedReader in = new BufferedReader(reader);
		Main ins = new Main(in);
		ins.calc();
		ins.showResult();
	}

	int A, B, C, X;
	int count = 0;

	Main(BufferedReader in) throws IOException {
		A = Integer.parseInt(in.readLine());
		B = Integer.parseInt(in.readLine());
		C = Integer.parseInt(in.readLine());
		X = Integer.parseInt(in.readLine());
	}

	void calc() {
		for (int i = 0; i <= A; ++i) {
			if (500 * i <= X) {
				int remain0 = X - 500 * i;
				for (int j = 0; j <= B; ++j) {
					if (100 * j <= remain0) {
						int remain1 = remain0 - 100 * j;
						if (remain1 % 50 == 0 && remain1 / 50 <= C) {
							++count;
						}
					}
				}
			}
		}
		System.out.println(count);

	}

	void showResult() {
	}
} import java.util.*; util.* java import java.util.stream.Collectors; Collectors java.util.stream import java.io.*; io.* java import java.nio.charset.StandardCharsets; StandardCharsets java.nio.charset public class Main {
	public static void main(String[] args) throws IOException {
		InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);
		BufferedReader in = new BufferedReader(reader);
		Main ins = new Main(in);
		ins.calc();
		ins.showResult();
	}

	int A, B, C, X;
	int count = 0;

	Main(BufferedReader in) throws IOException {
		A = Integer.parseInt(in.readLine());
		B = Integer.parseInt(in.readLine());
		C = Integer.parseInt(in.readLine());
		X = Integer.parseInt(in.readLine());
	}

	void calc() {
		for (int i = 0; i <= A; ++i) {
			if (500 * i <= X) {
				int remain0 = X - 500 * i;
				for (int j = 0; j <= B; ++j) {
					if (100 * j <= remain0) {
						int remain1 = remain0 - 100 * j;
						if (remain1 % 50 == 0 && remain1 / 50 <= C) {
							++count;
						}
					}
				}
			}
		}
		System.out.println(count);

	}

	void showResult() {
	}
} Main int A A B B C C X; X int count = 0; count 0 public static void main(String[] args) throws IOException {
		InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);
		BufferedReader in = new BufferedReader(reader);
		Main ins = new Main(in);
		ins.calc();
		ins.showResult();
	} main {
		InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);
		BufferedReader in = new BufferedReader(reader);
		Main ins = new Main(in);
		ins.calc();
		ins.showResult();
	} InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8); reader new InputStreamReader(System.in, StandardCharsets.UTF_8) BufferedReader in = new BufferedReader(reader); in new BufferedReader(reader) Main ins = new Main(in); ins new Main(in) ins.calc() ins.calc ins ins.showResult() ins.showResult ins String[] args args Main(BufferedReader in) throws IOException {
		A = Integer.parseInt(in.readLine());
		B = Integer.parseInt(in.readLine());
		C = Integer.parseInt(in.readLine());
		X = Integer.parseInt(in.readLine());
	} Main {
		A = Integer.parseInt(in.readLine());
		B = Integer.parseInt(in.readLine());
		C = Integer.parseInt(in.readLine());
		X = Integer.parseInt(in.readLine());
	} A = Integer.parseInt(in.readLine()) A Integer.parseInt(in.readLine()) Integer.parseInt Integer in.readLine() in.readLine in B = Integer.parseInt(in.readLine()) B Integer.parseInt(in.readLine()) Integer.parseInt Integer in.readLine() in.readLine in C = Integer.parseInt(in.readLine()) C Integer.parseInt(in.readLine()) Integer.parseInt Integer in.readLine() in.readLine in X = Integer.parseInt(in.readLine()) X Integer.parseInt(in.readLine()) Integer.parseInt Integer in.readLine() in.readLine in BufferedReader in in void calc() {
		for (int i = 0; i <= A; ++i) {
			if (500 * i <= X) {
				int remain0 = X - 500 * i;
				for (int j = 0; j <= B; ++j) {
					if (100 * j <= remain0) {
						int remain1 = remain0 - 100 * j;
						if (remain1 % 50 == 0 && remain1 / 50 <= C) {
							++count;
						}
					}
				}
			}
		}
		System.out.println(count);

	} calc {
		for (int i = 0; i <= A; ++i) {
			if (500 * i <= X) {
				int remain0 = X - 500 * i;
				for (int j = 0; j <= B; ++j) {
					if (100 * j <= remain0) {
						int remain1 = remain0 - 100 * j;
						if (remain1 % 50 == 0 && remain1 / 50 <= C) {
							++count;
						}
					}
				}
			}
		}
		System.out.println(count);

	} for (int i = 0; i <= A; ++i) {
			if (500 * i <= X) {
				int remain0 = X - 500 * i;
				for (int j = 0; j <= B; ++j) {
					if (100 * j <= remain0) {
						int remain1 = remain0 - 100 * j;
						if (remain1 % 50 == 0 && remain1 / 50 <= C) {
							++count;
						}
					}
				}
			}
		} int i = 0; int i = 0; i 0 i <= A i A ++i ++i i {
			if (500 * i <= X) {
				int remain0 = X - 500 * i;
				for (int j = 0; j <= B; ++j) {
					if (100 * j <= remain0) {
						int remain1 = remain0 - 100 * j;
						if (remain1 % 50 == 0 && remain1 / 50 <= C) {
							++count;
						}
					}
				}
			}
		} {
			if (500 * i <= X) {
				int remain0 = X - 500 * i;
				for (int j = 0; j <= B; ++j) {
					if (100 * j <= remain0) {
						int remain1 = remain0 - 100 * j;
						if (remain1 % 50 == 0 && remain1 / 50 <= C) {
							++count;
						}
					}
				}
			}
		} if (500 * i <= X) {
				int remain0 = X - 500 * i;
				for (int j = 0; j <= B; ++j) {
					if (100 * j <= remain0) {
						int remain1 = remain0 - 100 * j;
						if (remain1 % 50 == 0 && remain1 / 50 <= C) {
							++count;
						}
					}
				}
			} 500 * i <= X 500 * i 500 i X {
				int remain0 = X - 500 * i;
				for (int j = 0; j <= B; ++j) {
					if (100 * j <= remain0) {
						int remain1 = remain0 - 100 * j;
						if (remain1 % 50 == 0 && remain1 / 50 <= C) {
							++count;
						}
					}
				}
			} int remain0 = X - 500 * i; remain0 X - 500 * i X 500 * i 500 i for (int j = 0; j <= B; ++j) {
					if (100 * j <= remain0) {
						int remain1 = remain0 - 100 * j;
						if (remain1 % 50 == 0 && remain1 / 50 <= C) {
							++count;
						}
					}
				} int j = 0; int j = 0; j 0 j <= B j B ++j ++j j {
					if (100 * j <= remain0) {
						int remain1 = remain0 - 100 * j;
						if (remain1 % 50 == 0 && remain1 / 50 <= C) {
							++count;
						}
					}
				} {
					if (100 * j <= remain0) {
						int remain1 = remain0 - 100 * j;
						if (remain1 % 50 == 0 && remain1 / 50 <= C) {
							++count;
						}
					}
				} if (100 * j <= remain0) {
						int remain1 = remain0 - 100 * j;
						if (remain1 % 50 == 0 && remain1 / 50 <= C) {
							++count;
						}
					} 100 * j <= remain0 100 * j 100 j remain0 {
						int remain1 = remain0 - 100 * j;
						if (remain1 % 50 == 0 && remain1 / 50 <= C) {
							++count;
						}
					} int remain1 = remain0 - 100 * j; remain1 remain0 - 100 * j remain0 100 * j 100 j if (remain1 % 50 == 0 && remain1 / 50 <= C) {
							++count;
						} remain1 % 50 == 0 && remain1 / 50 <= C remain1 % 50 == 0 remain1 % 50 remain1 50 0 remain1 / 50 <= C remain1 / 50 remain1 50 C {
							++count;
						} ++count count System.out.println(count) System.out.println System.out System System.out count void showResult() {
	} showResult {
	} public class Main {
	public static void main(String[] args) throws IOException {
		InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);
		BufferedReader in = new BufferedReader(reader);
		Main ins = new Main(in);
		ins.calc();
		ins.showResult();
	}

	int A, B, C, X;
	int count = 0;

	Main(BufferedReader in) throws IOException {
		A = Integer.parseInt(in.readLine());
		B = Integer.parseInt(in.readLine());
		C = Integer.parseInt(in.readLine());
		X = Integer.parseInt(in.readLine());
	}

	void calc() {
		for (int i = 0; i <= A; ++i) {
			if (500 * i <= X) {
				int remain0 = X - 500 * i;
				for (int j = 0; j <= B; ++j) {
					if (100 * j <= remain0) {
						int remain1 = remain0 - 100 * j;
						if (remain1 % 50 == 0 && remain1 / 50 <= C) {
							++count;
						}
					}
				}
			}
		}
		System.out.println(count);

	}

	void showResult() {
	}
} public class Main {
	public static void main(String[] args) throws IOException {
		InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);
		BufferedReader in = new BufferedReader(reader);
		Main ins = new Main(in);
		ins.calc();
		ins.showResult();
	}

	int A, B, C, X;
	int count = 0;

	Main(BufferedReader in) throws IOException {
		A = Integer.parseInt(in.readLine());
		B = Integer.parseInt(in.readLine());
		C = Integer.parseInt(in.readLine());
		X = Integer.parseInt(in.readLine());
	}

	void calc() {
		for (int i = 0; i <= A; ++i) {
			if (500 * i <= X) {
				int remain0 = X - 500 * i;
				for (int j = 0; j <= B; ++j) {
					if (100 * j <= remain0) {
						int remain1 = remain0 - 100 * j;
						if (remain1 % 50 == 0 && remain1 / 50 <= C) {
							++count;
						}
					}
				}
			}
		}
		System.out.println(count);

	}

	void showResult() {
	}
} Main
import java.util.*;
import java.util.stream.Collectors;
import java.io.*;
import java.nio.charset.StandardCharsets;

public class Main {
	public static void main(String[] args) throws IOException {
		InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);
		BufferedReader in = new BufferedReader(reader);
		Main ins = new Main(in);
		ins.calc();
		ins.showResult();
	}

	int A, B, C, X;
	int count = 0;

	Main(BufferedReader in) throws IOException {
		A = Integer.parseInt(in.readLine());
		B = Integer.parseInt(in.readLine());
		C = Integer.parseInt(in.readLine());
		X = Integer.parseInt(in.readLine());
	}

	void calc() {
		for (int i = 0; i <= A; ++i) {
			if (500 * i <= X) {
				int remain0 = X - 500 * i;
				for (int j = 0; j <= B; ++j) {
					if (100 * j <= remain0) {
						int remain1 = remain0 - 100 * j;
						if (remain1 % 50 == 0 && remain1 / 50 <= C) {
							++count;
						}
					}
				}
			}
		}
		System.out.println(count);

	}

	void showResult() {
	}
}