In a four-digit number, in which the hundreds digit is double the thousands digit and the units digit is 4 times the thousands digit, find the average of all such numbers.