Altogether, three different positive integers have 7 digits, not all different. One of the numbers is the average of the other two. What is the largest possible value of this average?