Fibbosum (SPOJ) - why wrong answer, ran 50 test cases

matrix-expo
modulo
spoj

#1

WHY IS MY CODE FOR FIBBOSUM ([PROBLEM][1]) IS SHOWING WRONG ANSWER LIKE MAN I RAN IT ON 50 TEST CASES AND IT WORKS PERFECTLY FINE

HERE IS MY CODE


[2]


  [1]: https://www.spoj.com/problems/FIBOSUM/
  [2]: https://ideone.com/ws6vSu

#2

well i spotted out the error. will be happy to tell if anyone asks the error