Process carry
for i in range ( n - 2 , - 1 , - 1 ) : NEW_LINE INDENT if ( c [ i ] == '9' ) : NEW_LINE INDENT c [ i ] = '0' NEW_LINE DEDENT else : NEW_LINE INDENT t = ord ( c [ i ] ) - ord ( '0' ) + 1 NEW_LINE c [ i ] = chr ( 48 + t ) NEW_LINE break NEW_LINE DEDENT DEDENT s1 = " " . join ( c ) NEW_LINE if ( s1 [ 0 ] == '0' ) : NEW_LINE s1 = "1" + s1 NEW_LINE