EASY: deal with large sum by repeated modulo