package net.ipipip0129.kotlin.yukicoder fun main(args: Array) { val data = readLine()!!.split(" ") val pos = Pos(data[0].toDouble(), data[1].toDouble()) val dis = Math.sqrt(Math.pow(pos.x, 2.0) + Math.pow(pos.y, 2.0)) if (dis == dis.toLong().toDouble()) { println(dis.toLong() * 2 + 1) }else { println(Math.ceil(dis).toLong() * 2) } } private class Pos(val x: Double, val y: Double)