結果 : how to do modular arithmetic in python