#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char *argv[]) {
char str1[33],str2[33];
int ans[33];
int i;
while(scanf("%s",&str1)!=EOF){
scanf("%s",&str2);
int carry=0;
for(i=31;i>=0;i--){
ans[i]=(str1[i]-'0'+str2[i]-'0'+carry)%2;
carry=(str1[i]-'0'+str2[i]-'0'+carry)/2;
}
puts(str1);
puts(str2);
printf("---------------------------------\n");
for(i=0;i<32;i++) printf("%d",ans[i]);
printf("\n");
printf("****End of Data******************\n");
}
return 0;
}