#include <bits/stdc++.h>
using namespace std;
int main() {
  int x, t, a, b, da, db;
  bool find;
  while (scanf("%d%d%d%d%d%d", &x, &t, &a, &b, &da, &db) != EOF) {
    find = false;
    if (x == 0)
      printf("YES\n");
    else {
      for (int i = 0; i < t; i++) {
        if (!find) {
          for (int j = 0; j < t; j++) {
            if (a - da * i + b - db * j == x) {
              find = true;
              break;
            } else if (a - da * j == x) {
              find = true;
              break;
            } else if (b - db * j == x) {
              find = true;
              break;
            }
          }
        } else
          break;
      }
      if (find)
        printf("YES\n");
      else
        printf("NO\n");
    }
  }
  return 0;
}
