#include <iostream> #include<map> #include<string> #include <utility> using namespace std; int main() { int n; cin >> n; map<int,string> m; string ss; int weight; pair<int, string> p; for(int i=0;i<n;i++) { cin >> weight >> ss; p.first = weigh...