#include using namespace std; int main(){ int N; cin >> N; vector A(N); for(int i=0;i> A[i]; for(int i=0;i> B(N-i-1); for(int j=i+1;j