#include #include #include #include #include #define M 1000000007 using namespace std; long long int power(long long a,long long b) { if(b==0) return 1; else if(b==1) return a; else if(b%2==0) return power((a*a)%M,b/2); else return (power((a*a)%M,b/2)*a)%M; } int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */ int a,b; long long t; cin>>a>>b>>t; int exp=a*0.5+b*0.5; long long n=power(exp,t); cout<