import Foundation

let inputOni = readLine()!.components(separatedBy: " ").map{ Int($0)}
let inputNige = readLine()!.components(separatedBy: " ").map{ Int($0)}
let T = Int(readLine()!)!

let A = inputOni[0]!
let V = inputOni[1]!
let B = inputNige[0]!
let W = inputNige[1]!

for i in 1...T + 1{
    var oni = V * i + A
    var nige = W * i + B
    if i == T + 1{
        print("NO")
    }else if oni == nige {
        print("YES")
        break
    }
}