A 4-digit number has three different digits. The sum of first and last digits is 7. None of the digits is 5. Three of its digits are even. First and third digits are the same. The product of second and third digits is 8. What is the remainder left when this number is divided by 8?