#include using namespace std; template void fin(T a){ cout<>n; vector a(n),b(n); for(int i=0;i>a[i]>>b[i]; vector v(n); for(int i=0;i