#MMA Contest 015 B ''' 繰り上がりがあれば0。これxorでいいのかな。 ''' A=int(input(),2); B=int(input(),2); print(A^B)