X,Y = map(int,input().split()) N = int(input()) As = [int(x) for x in input().split()] x = X / 3600 * 1000 y = Y / 3600 * 1000 for i in range(N - 1): p = As[i] sight = As[i + 1] time = p / x y_pos = time * y if y_pos > sight: print("NO") break else: print("YES")