import scala.io.StdIn import Math.{sqrt,abs} object Main extends App { val a = StdIn.readLine.split(" ").map { x => abs(x.toInt) } println((a(0) + a(1) + a(2) * sqrt(2)).toInt + 1) }