#include #include #include using namespace std; int main(){ int n; cin >> n; int a[n],b[n],ans=0; for(int i=0;i> a[i]; b[i]=i+1; } sort(a,a+n); for(int i=0;i