read N
awk 'NR==1{for(i=1;i<=NF;i++)a[i]=$i}NR==2{for(i=1;i<=NF;i++)for(j=1;j<=NF;j++){print $i+a[j]}}'\
    | cat <(echo 'obase=2;') -\
    | bc\
    | awk '{printf("%030d\n",$1)}'\
    | awk -v FS='' '{for(i=1;i<=NF;i++)a[i]+=$i}END{for(i=1;i<=NF;i++)printf a[i]%2; print ""}'\
    | cat <(echo 'ibase=2;') -\
    | bc