program tag
  implicit none
  integer(8) :: a, b, v, w, t, i, j, a1, b1

  read(*,*) a, v
  read(*,*) b, w
  read(*,*) t

  do i = 1, t
     a1 = a + i*v
     if (mod(i,2) == 1) then
        do j = 1, t, 2
           b1 = b + j*w
           if (a1 == b1) then
              write(*,*) 'YES'
              stop
           end if
        end do
     else
        do j = 0, t, 2
           b1 = b + j*w
           if ( a1 == b1 ) then
              write(*,*) 'YES'
              stop
           end if
        end do
     end if
  end do
  write(*,*) 'NO'
  stop
end program tag
  
