#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long ll; int main() { ll n,a,b,q; cin>>n>>a>>b>>q; ll arr[n]; for (ll i=0;i>arr[i]; while (q--) { ll choice; cin>>choice; ll f,s; cin>>f>>s; if (choice==1) arr[f]=s; else { ll temp=arr[f]; for (ll i=f+1;i<=s;i++) temp+=(arr[i]*pow((-1.0*b)/a,i-f)); if (temp==0) cout<<"Yes"<