#include #include #include #include #include using namespace std; int main() { int n,q; long long a,b; cin >> n >> a >> b >> q; long long c[n]; for(int i = 0;i> c[i]; } for(int i = 0;i> d >> o >> p; if(d==1){ c[o]=p; }else{ double cof=(double)c[o]/b; for(int i = 1;i