/////////////////////////////No.98 円を描こう //入力文字読み取り var inputall = require('fs').readFileSync('/dev/stdin', 'utf8').trim(); //すべて受け取り一文字ずつ区切って格納 var input = inputall.split(" "); //x軸 var x = Number(input[0]); //y軸 var y = Number(input[1]); //2乗 var pow_x = Math.pow(x, 2); var pow_y = Math.pow(y, 2); //平方根 var sqrt = Math.sqrt(pow_x + pow_y)*2 var sqrt_floor = Math.floor(sqrt); console.log(sqrt_floor + 1);