#include using namespace std; #define ll long long int #define MOD 1000000007 ll fast_exp(ll base, ll exp) { ll res=1; while(exp>0) { if(exp%2==1) res=(res*base)%MOD; base=(base*base)%MOD; exp/=2; } return res%MOD; } int main() { // Use the min(a, b) as the second parameter // This prints: 27 ll a,b,c; cin>>a>>b>>c; cout << fast_exp((a+b)/2, c) <