import strutils, sequtils let XY, N, A = stdin.readLine.split.map parseInt (X, Y) = (XY[0], XY[1]) for i in 1 ..< A.len: if X * A[i] < Y * A[i - 1]: echo "NO" quit() echo "YES"