#include #include #include #include #include using namespace std; int power(long long int x, long long int y,long long int p){ long long int result = 1; x=x%p; while(y>0) { if(y & 1) { result = (result *x)%p; } y=y>>1; x=(x*x)%p; } return result; } int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */ long long int a,b,t,temp; cin>>a; cin>>b; cin>>t; temp=(a+b)/2; long long int k=1000000007; long long int ans=power(temp,t,k); cout<