#include #include #include #include #include using namespace std; #define MOD 1000000007 long long modex(long long base,long long expo){ if(expo==0) return 1; long long f=modex(base,expo/2); if(expo%2==0) return (f%MOD*f%MOD)%MOD; return ((f%MOD*f%MOD)%MOD*base%MOD)%MOD; } int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */ long long a,b,t; cin>>a>>b>>t; long long res1=modex(a+b,t); long long res2=modex(modex(2,t),MOD-2); long long res3=(res1%MOD*res2%MOD)%MOD; cout<