Find the largest four-digits number which when divided by 4, 7 and 13 leaves a remainder of 3 in each case.