#include <bits/stdc++.h>

using namespace std;

int main() {
    double x, y;
    cin >> x >> y;
    x = x * 1000;
    y = y * 1000;

    int n;
    cin >> n;

    vector<int> a(n);
    for (int i = 0; i < n; i++) {
        cin >> a[i];
    }

    double time = 0;
    for (int i = 0; i < n - 2; i++) {
        time = a[i] / x;
        if (y * time > a[i + 1]) {
            cout << "NO" << endl;
            return 0;
        }
    }

    cout << "YES" << endl;

    return 0;
}