#include using namespace std; int main() { int n; cin>>n; string gene[n]; int hel[n]; int i,j; for(i=0;i>gene[i]; for(i=0;i>hel[i]; int n1; cin>>n1; int ar[n1],i1=0; for(i=0;i>first; cin>>last; string s; cin>>s; int p1=s.length(); string s2[p1]; int j,k,val=0,p; for(k=0;kar[j]) { int temp; temp=ar[i]; ar[i]=ar[j]; ar[j]=temp; } } } cout<