#include #include #include using namespace std; int a[100]; int main(void){ int x,y,n; cin >> x >> y >> n; assert(x >= 1 && x <= 100); assert(y >= 1 && y <= 100); assert(n >= 1 && n <= 80); for(int i = 0; i < n; i++) cin >> a[i]; for(int i = 0; i < n-1; i++){ assert(a[i] < a[i+1]); assert(0 < a[i] && a[i] <= 100000); if((a[i+1]) < a[i]/(x/3.6)*(y/3.6) ){ cout << "NO" << endl; return 0; } } cout << "YES" << endl; }