A, B = gets.split.map(&:to_i) puts (A or B) + (A and B)