#include using namespace std; int p,n[100],k[100]; int main(){ cin>>p; for(int i=0;i>n[i]>>k[i]; }for(int i=0;i