def f(): x,y = map(int,input().split()) n,a = int(input()),list(map(int, input().split())) for i in range(n-1): if a[i]*y > a[i+1]*x: return False return True print(f() and "YES" or "NO")