using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Numerics; class Solution { static void Main(String[] args) { string[] strings = Console.ReadLine().Split(' '); //var strings = args; var values = strings; var a = BigInteger.Parse(values[0]); var b = BigInteger.Parse(values[1]); var sum = a + b; var mn = new BigInteger(2); var t = BigInteger.Parse(values[2]); var module = new BigInteger(1000000007); Int64 index = 0; var val = BigInteger.Divide(sum, mn); var result = BigInteger.ModPow(val, t, module); //var result = Math.Pow(0.5, t) * Math.Pow(sum, t) % module; Console.WriteLine(result); } }