Note that A [ 0 ] or D [ 0 ] decides values of rest of the elements .
else : NEW_LINE INDENT A [ i ] = D [ i ] + A [ i - 1 ] NEW_LINE DEDENT print ( A [ i ] , end = " ▁ " ) NEW_LINE print ( " " ) NEW_LINE