import java.io.*; import java.util.*; import java.math.*; public class Solution { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int a = scan.nextInt(); int b = scan.nextInt(); int t = scan.nextInt(); BigInteger ans = calculate(a + b, t); double ans2 = Math.pow(0.5, t); System.out.println((int) (ans.doubleValue() * ans2)); } public static BigInteger calculate(int num, int t) { BigInteger ans = BigInteger.valueOf(num); return ans.modPow(BigInteger.valueOf(t), BigInteger.valueOf((long) Math.pow(10, 9) + 7)); } }