x,y = map(int,input().split(' ')) n = int(input()) a = list(map(int,input().split(' '))) if n == 1 or x * a[n-1] >= y * a[n-2]: print("YES") else: print("NO")