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