#include #include #include #include #include using namespace std; long long int power1(long long int x, long long int y,long long int p) { long long int res = 1; x = x % p; while (y > 0) { if (y & 1) res = (res*x) % p; y = y>>1; x = (x*x) % p; } return res; } int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */ long long int y,x,z; long long int a=0,b=0; long long int T; long long int answer=0; cin>>a; cin>>b; cin>>T; x=(0.5*(a+b)); z=pow(10,9)+7; y=power1(x,T,z); answer=y; cout<