Using Wilson's theorem,
28! + 1 is divisible by 29 and
30! + 1 is divisible by 31.
$$r_1$$ = 28! mod 29 = -1 or 28
30! + 1 = 0 (mod 31)
So 28! *(31-1)*(31-2) = -1 (mod 31)
=> 28! * (-1) * (-2) = -1 (mod 31)
=> 28! * 2 = -1 (mod 31)
Multiplying both the sides by 16 {16 * 2 = 1 (mod 31)}
28! * 2 * 16 = -16 (mod 31)
=> 28! * 1 = -16 (mod 31)
=> 28! + 16 = 0 (mod 31)
So, $$r_2$$ = 28! mod 31 = -16 or 15
Combining these two using Chinese remainder theorem,
28! mod 899 = $$ar_2x + br_1y$$ where ax+by=1
a=29 and b=31. Integral x and y satisfying the linear equation are x=15 and y=-14.
Hence, 28! mod 899 = 29 * 15 * 15 + 31 * 28 * -14 = -5627 = 899*-7 + 666
Hence, 28! mod 899 = 666