#include #include #include #include #include #include #include using namespace std; unsigned long long power(int imp,unsigned long long int t) { unsigned long long int t1; if(t==0) return 1; if(t==1) return imp; else { if(t%2==0) { t1= (power(imp,t/2))%1000000007; t1=(t1*t1)%1000000007; } else { t1= (power(imp,(unsigned long long int)(t/2)))%1000000007; t1=(t1*t1)%1000000007; t1*=imp%1000000007; } } return t1%1000000007; } int main() { int a,b; unsigned long long t; unsigned long long int first; cin>>a>>b>>t; unsigned long long int imp=(a+b)*.5; unsigned long long x=1; x=power(imp,t); cout<