            num = int(a[aIndex]) + int(b[bIndex]) + flag
            flag = num / 2
            num %= 2
            s = str(num) + s
            aIndex -= 1
            bIndex -= 1
        while aIndex >= 0:
            num = int(a[aIndex]) + flag
            flag = num / 2
            num %= 2