object Main extends App {
  var aAndB = readLine
  val a = num.split(" ")(0).toInt
  val b = num.split(" ")(1).toInt
  var sum = a + num.split(" ")(0).toInt + num.split(" ")(1).toInt
  println(a + b * -2);
}