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