import java.io.*; import java.util.*; public class Main_yukicoder512 { private static Scanner sc; private static Printer pr; private static void solve() { int x = sc.nextInt(); int y = sc.nextInt(); int n = sc.nextInt(); int[] a = new int[n]; for (int i = 0; i < n; i++) { a[i] = sc.nextInt(); } boolean flag = true; for (int i = 0; i < n - 1; i++) { if (a[i] * y > a[i + 1] * x) { flag =false; break; } } if (flag) { pr.println("YES"); } else { pr.println("NO"); } } // --------------------------------------------------- public static void main(String[] args) { sc = new Scanner(System.in); pr = new Printer(System.out); solve(); pr.close(); sc.close(); } private static class Printer extends PrintWriter { Printer(PrintStream out) { super(out); } } }