func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     int x, t, a, b, at, bt;     cin >> x >> t >> a >> b >> at >> bt;     int btek = b;     set<int> my;     my.insert(0);     int ttek1 = t;     while (btek > 0 && ttek1 > 0) {       my.insert(btek);       int atek = a;       int ttek2 = t;       while (atek > 0 && ttek2 > 0) {         my.insert(atek);         my.insert(atek + btek);         ttek2--;         atek -= at;       }       ttek1--;       btek -= bt;     }     if (my.find(x) != my.end())       cout <<  YES ;     else       cout <<  NO ;   }   