#include using namespace std; int main(){ int x,N; int a[100]; long long product,ans = 0; cin >> x >> N; for(int i=0;i> a[i]; a[i] %= 1000002; } for(int i=0;i