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