Sum of three 1-digit numbers with regrouping