int AdditionMitRest(int a, int b, int mod) { return (a+b) % mod; }