static int modBase1(int a, int b) { ret b == 0 ? 0 : mod(a-1, b)+1; }