#include using namespace std; #define mod 1000000007 #define LL long long LL n,q; double a,b; LL ara[100005]; int main() { cin >> n >> a >> b >> q; for(int i=0; i>ara[i]; for(int i=0; i> x>>l>>r; if(x==1) { ara[l] = r; } else { vector mv; for(int i = r; i>=l; i--) mv.push_back(ara[i]); for(int i = 0 ; i