#include <bits/stdc++.h>
using namespace std;
int main() {
  int x, t, a, b, da, db;
  while (cin >> x >> t >> a >> b >> da >> db) {
    int sum = 0;
    int flag = 0;
    for (int i = 0; i < t; ++i) {
      for (int j = 0; j < t; ++j) {
        sum = a - da * i + b - db * j;
        if (sum == x) {
          flag = 1;
        }
      }
    }
    for (int i = 0; i < t; ++i)
      if (a - da * i == x || b - db * i == x) flag = 1;
    if (x == 0) flag = 1;
    if (flag)
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
  }
  return 0;
}
