A number, when divided by 143, leaves 31 as the remainder. What will be the remainder when the same number is divided by 13?