No. The problem is with 0 and 12. Both must return 12 instead of 0 that mod returns.