#include using namespace std; const int MOD = 1000003; int pows[MOD + 10]; int main(){ int x; cin >> x; pows[0] = 1; for(int i=1;i> N; int res = 0; while(N--){ int a; cin >> a; res += pows[a % (MOD - 1)]; if(res >= MOD) res -= MOD; } cout << res << endl; return 0; }