#include #define ll long long int using namespace std; ll mod=1e9+7; ll fastPow(ll a,ll b,ll mod) { if(b==0) return 1; ll half=fastPow(a,b/2,mod)%mod; if(b%2==0) return (half*half)%mod; return (((half*half)%mod)*a)%mod; } int main() { ll a,b; ll t; cin>>a>>b>>t; a=a+b; ll mmi=fastPow(2,t,mod); mmi=fastPow(mmi,mod-2,mod); ll ans=(fastPow(a,t,mod)*mmi)%mod; //ans/=2; cout << ans ; return 0; }