#include using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); long double X, Y; int N; cin >> X >> Y >> N; X /= 60, Y /= 60; vector A(N); for (auto&& e : A) { cin >> e; } for (int i = 0; i < N - 1; i++) { auto t = A[i] / X; if (A[i + 1] < Y * t) { cout << "NO" << '\n'; return 0; } } cout << "YES" << '\n'; return 0; }