#include using namespace std; int in; vector a_r; vector> arr; int main(){ a_r.resize(0); arr.resize(0); cin.ignore(1, ' '); int T;cin>>T; for(int i=0;i>in){a_r.push_back(in);j++;if(getchar()=='\n'){break;}} cin.ignore(); cin.ignore(0, ' '); arr.resize(a_r.size()); for(int i=0;i>arr[i].second; arr[i].first = a_r[i]-1; } sort(arr.begin(), arr.end(), less>()); cout<