How many four-digit integers have a remainder of 1 when divided by 7, a remainder of 3 when divided by 10, and a remainder of 5 when divided by 13?