let Line = [], m = [], n = [], i = 0, res = [];
while(Line[i] = readline()){                              //循环输入,直到无输入停止循环
    [n[i], m[i]] = Line[i].split(" ").map(Number); //转化为内容为数字的数组后解构赋值
    i++;
}
for(let j = 0; j < n.length; j++){ //循环计算
    let num = n[j];                //num表示数列中当前项
    let sum = n[j];            //sum表示数列中前m[j]项和
        for(let k = 0; k < m[j] - 1; k++){
        num = Math.sqrt(num);
        sum += num;
    }
    res.push(sum);
}
for(let j = 0; j < n.length; j++) //输出
    console.log(res[j].toFixed(2));