#include //#include using namespace std; //using namespace atcoder; typedef long long ll; typedef pair P; //typedef modint1000000007 mint; ll n; ll a[100005]; int main(void){ cin.tie(0); ios::sync_with_stdio(0); cin>>n; for(ll i=0;i>a[i]; } sort(a,a+n); for(ll i=1;i