function processData(input) { //Enter your code here var n = input.split(" ").map(Number); var a = n[0]; var b = n[1]; var c = n[2]; var answer = (Math.pow((0.5 * (a + b)), c))%(Math.pow(10, 9)+7); console.log(answer); } process.stdin.resume(); process.stdin.setEncoding("ascii"); _input = ""; process.stdin.on("data", function (input) { _input += input; }); process.stdin.on("end", function () { processData(_input); });