#include using namespace std; #include using namespace atcoder; using ll=long long; using ld=long double; using ull=unsigned long long; using pii=pair; using pll=pair; using mint=modint998244353; const ll INF=1ll<<60; int main(){ int N; cin>>N; ll A[N]; for(int i=0;i>A[i]; ll ans=0; for(int i=0;i