
def addBinary(a, b):
	return bin(int(a,2)+int(b,2))[2:]
@@ -1,8 +1,20 @@
+import sys%0A%0A
 %0Adef add
@@ -31,9 +31,13 @@
 b):%0A
-%09
+    '
 retu
@@ -65,8 +65,851 @@
 ,2))%5B2:%5D
+'%0A    sumtemp = str(a + b)%0A    sumlist = %5B%5D%0A    for char in sumtemp:%0A        sumlist.append(int(char))%0A    for i in range(1, len(sumtemp) + 1):%0A        if sumlist%5B-i%5D == 0 or sumlist%5B-i%5D == 1:%0A                pass%0A        else:%0A            if i + 1 %3C len(sumtemp) + 1:%0A                if sumlist%5B-i%5D == 2:%0A                    sumlist%5B-i%5D = 0%0A                    sumlist%5B-i - 1%5D += 1%0A                else:%0A                    sumlist%5B-i%5D = 1%0A                    sumlist%5B-i - 1%5D += 1%0A            else:%0A                if sumlist%5B-i%5D == 2:%0A                    sumlist%5B-i%5D = 0%0A                    sumlist.insert(0, 1)%0A                else:%0A                    sumlist%5B-i%5D = 1%0A                    sumlist.insert(0, 1)%0A    return %22%22.join(str(x) for x in sumlist)%0A%0A%0Aif __name__ == '__main__':%0A    print(addBinary(int(sys.argv%5B1%5D), int(sys.argv%5B2%5D)))%0A

add Binary with list check for 2 and 3