'use strict'

function main(input) {
  const [a, b, t] = input
    .trim()
    .split('\n')
    .map((x) => x.split(' ').map((v) => Number(v)))
  for (let i = 0; i < t[0]; i++) {
    let pa, pb
    if (a[0] < b[0]) {
      pa = a[0] + a[1] * i
      pb = b[0] + b[1] * i
    } else {
      pa = a[0] - a[1] * i
      pb = b[0] - b[1] * i
    }
    if (pa === pb) {
      console.log('YES')
      return
    }
  }
  console.log('NO')
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'))
