text: //1584A
  #include <bits/stdc++.h>
  
  using namespace std;
  typedef long long ll;
  typedef long double ld;
  int main(){
      ll n;
      cin>>n;
      ll u,v;
      for(ll i=0;i<n;i++){
          cin>>u>>v;
          cout<<-1*u*u<<" "<<v*v<<endl;//math, try solving on both sides
      }
    return 0;
  }