#include using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); double x, y; cin >> x >> y; int n; cin >> n; vector v(n); for(int i = 0; i < n; i++) { cin >> v[i]; } for(int i = 0; i < n - 1; i++) { double t = 1.0 * v[i] * y / x; if(t > v[i + 1]) { cout << "NO" << endl; return 0; } } cout << "YES" << endl; return 0; }