#include #include using namespace std; using namespace atcoder; using ll=long long; struct edge{ int u,v,w; edge(int u,int v,int w):u(u),v(v),w(w){}; edge(){} }; int main() { int m; cin>>m; vector a(m); for(int i=0;i>a[i]; sort(a.begin(),a.end()); vector s; s.push_back(0); vector edges; int p=0; for(int i=0;i