def ascan; gets.split.map(&:to_i);end
a,b=ascan
p a^b