I want to express the output(t3) as modulo of 15746 can someone please tell me what is the error in this code.(n<1000000)

for full question.

```
#include<iostream>
#include<algorithm>
using namespace std;
int main()
{
int n,x,t1=0,t2=1,t3=0;
cin>>n;
for(x = 0 ;x < n ; x++)
{
t3=t1+t2;
t1=t2;
t2=t3;
}
t3=t3%15746;
cout << t3;
//system("pause");
return (0);
}
```

P.S. I am just a beginner.