#include #include using namespace std; int mods[400400]; int main() { cin.sync_with_stdio(false); int n; int a[400400]; 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