A number is between 300 and 400. If it is divided by 2, the remainder is 1. If it is divided by 4, 6, or 8, the remainder is 3. If it is divided by 10, the remainder is 5. If it is divided by 3, 5, 7, or 9, the remainder is zero. What is the number?