input()a = input().replace(' ','')b = input().replace(' ','')print(bin(int(a,2)+int(b,2))[2:])
3 5 1 0 1 1 1 0 1 1
100000
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!