#include #include #include #include using namespace std; typedef struct Value{ int id, v; }Value; bool compare(const Value& left , const Value &right){ return left.v>right.v; } int main(){ int n; scanf("%d",&n); vector v(n); for(int i=0;i