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