#include <bits/stdc++.h>
using namespace std;
const int mod = 100000007;
const int N = 1001;
const int M = 100005;
const long double pi = acos(-1);
int main() {
  ios_base::sync_with_stdio(false);
  int x, t, a, b, da, db, i, j, h;
  cin >> x >> t >> a >> b >> da >> db;
  h = b;
  if (x == 0) {
    puts("YES\n");
    return 0;
  }
  for (int i = 0; i < t; i++) {
    if (a == x) {
      puts("YES\n");
      return 0;
    }
    for (int j = 0; j < t; j++) {
      if (b == x) {
        puts("YES\n");
        return 0;
      }
      if (a + b == x) {
        puts("YES\n");
        return 0;
      }
      b -= db;
    }
    a -= da;
    b = h;
  }
  puts("NO\n");
  return 0;
}
