Question 5
The sum of the dots on each pair of opposite faces of a fair die is 7. Alice rolls three fair dice and records the numbers of dots on the top faces (from left to right) as a three-digit number. She also records the numbers of dots on the bottom faces (from left to right) as another three-digit number. Then Alice appends the second number after the first one to form a six-digit number. If this six-digit number is a multiple of 3895, what is value of the first three-digit number?