//400
fun b017(args: Array<String>) {
    val (N, A, B, C, D) = args[0].split(" ").map { it.toLong() }
    val diff = Math.abs(A - B)
    if ((0 until N).any { C * (N - 1 - it) - D * it <= diff && diff <= -C * it + D * (N - 1 - it) }) {
        println("YES")
    } else {
        println("NO")
    }
}

fun main(args: Array<String>) {
    b017(readLineList())
}

fun readLineList(): Array<String> {
    val lineList = mutableListOf<String>()
    while (true) {
        val line = readLine()
        if (line.isNullOrBlank()) {
            break
        } else {
            lineList.add(line!!)
        }
    }
    return lineList.toTypedArray()
}