#include #include using namespace std; int main() { int n; int a[400400]; map mods; unsigned int sums=0; cin>>n; for(int i=0; i>a[i]; int st, dr; bool ok=false; for(int i=0; !ok && i