A\equiv B\equiv 0\pmod 5