# Lucky numbers

A seven digit number $\overline{ABCDEFG}$ is called lucky number if $$\overline{ABC} = \overline{DEF}$$ and/or $$\overline{ABC} = \overline{EFG}$$. Find the number of all lucky numbers.

×