object Main extends App {
	val temp = scala.io.StdIn.readLine.split(" ").map(_.toLong)

	val N = temp(0)
	val A = temp(1)
	val B = temp(2)
	val C = temp(3)
	val D = temp(4)

	val sum = B - A

	var resalt = "NO"

	for(i<- 0L until N){
		val under = i * C - (N - 1 - i) * D
		val top = i * D - (N - 1 - i) * C

//		println(s" ${under} < ${sum} < ${top}")

		if(under <= sum && sum <= top){
			resalt = "YES"
		}
	}

	println(resalt)

}