#include using namespace std; #define rep(i,n) for(int i=0;i<(int)(n);i++) template inline bool chmax(T&a,T b){if(a inline bool chmin(T&a,T b){if(a>b){a=b;return 1;}return 0;} using ll = long long; ll n,a,b; bool solve(){ for(int i=1;i> n; if(solve()) cout << a << " " << b << endl; else cout << -1 << endl; }