import java.util.Scanner

object Main {
  def main(args: Array[String]): Unit = {
    val sc = new Scanner(System.in)
    val A = Integer.parseInt(sc.next())
    val B = Integer.parseInt(sc.next())

    if (A == B) {
      println(A + B)
      return
    }

    val Large = Math.max(A, B)
    println()
  }
}