import java.util.Scanner import scala.annotation.tailrec import scala.collection.mutable.ArrayBuffer import scala.util.control.Breaks object Main extends App { val sc = new Scanner(System.in) val a = sc.nextInt val b = sc.nextInt println((a | b) + (a & b)) }