#include #include using namespace std; namespace mp = boost::multiprecision; int main(){ int T; cin>>T; for(int i=0;i>A>>B; cout<<((A+1)*B)<