program ABC_087_B_Coins
   implicit none
   integer A, B, C, X, i, j, k, co
   read(*, *) A
   read(*, *) B
   read(*, *) C
   read(*, *) X
   co = 0   
   X = X / 50
   do k = 0, A
      do j = 0, B
	      do i = 0, C
              if( 10*k + 2*j + 1*i == X ) then
			      co = co + 1
			  end if
		  end do
	  end do
   end do
   write(*, *) co
end program ABC_087_B_Coins