#include using namespace std; const long long INF = 1LL << 60; #define MOD 1000000007; typedef long long ll; #define writeln(n) cout< P; typedef pair Psi; int d[15]; int main() { int n; cin>>n; vector

v; for(int i=0; i>a>>b; v.push_back(P(a,b)); } vector p; for(int i=0; i()); for(int i=0; i