program ABC_087_B_Coins
   implicit none
   integer A, B, C, X, count50, count100, count500, i, j, k, co
   read(*, *) A
   read(*, *) B
   read(*, *) C
   read(*, *) X
   count50 = 0
   count100 = 0
   count500 = 0
   co = 0
   
   X = X / 50
   
   do i = 1, A
      if (X < 10 * i) then
	      exit
	  end if
	  count500 = count500 + 1
   end do
   
   do i = 1, B
      if (X < 2 * i) then
	      exit
	  end if
	  count100 = count100 + 1
   end do
   
   do i = 1, C
      if (X < i) then
	      exit
	  end if
	  count50 = count50 + 1
   end do
   
   do k = 0, count500
      do j = 0, count100
	      do i = 0, count50
              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