import Foundation
let A = Int(readLine()!)!
let B = Int(readLine()!)!
let C = Int(readLine()!)!
let X = Int(readLine()!)!
var count = 0
//500A + 100B + 50C = X を満たす(A,B,C)

for a in 0 ... A {
    if a*500 > X {
        break
    }
    for b in 0 ... B {
        if 500*a + 100*b > X {
            break
        }
        for c in 0 ... C {
            if 500*a + 100*b + 50*c == X {
                count += 1
            }
        }
    }
}
print(count)