The number of six-digit numbers that can be formed from the digits 1,2,3,4,5,6 and 7 so that digits do not repeat and the terminal digits are even is