#include <algorithm>
#include <utility>
#include <vector>
using namespace std;





int main () {
    vector <pair <int, int> > p;
    sort (begin (p), end (p),
        [&] (auto a, auto b)
        {return a.second > b.second;}); // C++14
    return 0;
}
