#include <bits/stdc++.h>
using namespace std;
int main() {
  long long t;
  cin >> t;
  while (t--) {
    long long n, x;
    cin >> n;
    x = n - 1;
    cout << -x << ' ' << n << endl;
  }
  return 0;
}
