From TT's on demand guidance:
If you excluded foreign income on Form 2555, enter on line 12a1 the amount of foreign earned income excluded (Form 2555, line 45) reduced by any itemized deductions that relate to the foreign income excluded.
Enter your total foreign earned income for the year on line 12a2. This is the total foreign earned income from Form 2555 (both copies), line 26, reduced by deductible expenses allocable to that foreign earned income.