#include #include #include #include #include using namespace std; int main() { unsigned a,b; long int t, val;cin>>a>>b>>t; val=0.5*(a+b); val=val*t; val=val%1000000007; cout<