#include #include #include #include #include #define mod 1000000007 using namespace std; unsigned long long int power(unsigned long long int x1, unsigned long long int y) { unsigned long long int res = 1; x1 = x1 % mod; while (y > 0) { if (y & 1) res = (res*x1) % mod; y = y>>1; x1 = (x1*x1) % mod; } return res; } int main() { unsigned long long int a,b,t,cells; cin>>a>>b>>t; unsigned long long int res=(power((a+b)/2,t)); cout<