#include #define int long long using namespace std; signed main(){ int Q; cin>>Q; while(Q--){ int d,A,B; cin>>d>>A>>B; if(d==2){ cout<