public static class MathUtil { public static int TrueMod(int a, int b) { return (a % b + b) % b; } }