#include using namespace std; #define IOS ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); #define endl "\n" #define Max(x,y,z) max(x,max(y,z)) #define Min(x,y,z) min(x,min(y,z)) #define fr(i,s,e) for(i=s;i=e;i--) #define pb push_back #define mp make_pair typedef long long ll; typedef unsigned int uint; typedef unsigned long long ull; typedef pair pii; typedef pair pll; typedef vector vi; typedef vector vll; typedef vector > vpll; typedef vector > vvll; #define PI 3.141592653589793 #define MOD 1000000007 int main() { ll n; cin>>n; ll a,b; cin>>a>>b; ll q; cin>>q; vector v(n); double x=(-1.0*b)/(a); for(ll i=0;i>v[i]; } for(ll i=0;i>c>>d>>e; if(c==1) { v[d]=e; } else { double curx=1; double curval=0; for(ll j=d;j<=e;j++) { curval+=curx*v[j]; //cout<=MOD) { curval-=MOD; } curx=curx*x; if(curx>=MOD) { curx-=MOD; } } if(curval==0) { cout<<"Yes"<