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