#include <bits/stdc++.h>
using namespace std;
const int K = 110;
const int N = 100010;
const int M = 1000000007;
int x, t, a, b, da, db;
int main() {
  ios::sync_with_stdio(0);
  cin >> x >> t >> a >> b >> da >> db;
  for (int s1 = 0; s1 < 2; ++s1)
    for (int s2 = 0; s2 < 2; ++s2)
      for (int i = 0; i < t; ++i)
        for (int j = 0; j < t; ++j)
          if (s1 * (a - i * da) + s2 * (b - j * db) == x) {
            cout << "YES\n";
            return 0;
          }
  cout << "NO\n";
}
