In the formula \overline{ABC}+\overline{DEFG}=2011, the difference is that letters represent different numbers, so what is the maximum value of A+B+C+D+E+F+G that satisfies the formula
在算式\overline{ABC}+\overline{DEFG}=2011中，不同是字母代表不同的数字，那么满足算式的A+B+C+D+E+F+G的最大值是多少
<gadget id="calculator">11 + 10 + 9 + 1</gadget>
<output>31</output>

<result>31</result>