package main import ( "fmt" "math/big" ) func main() { var a, b, t int64 fmt.Scanf("%d %d %d\n", &a, &b, &t) x := big.NewInt(a) y := big.NewInt(b) z := big.NewInt(t) x.Add(x, y) x.Div(x, big.NewInt(2.0)) m := big.NewInt(1000000000.0 + 7.0) x.Exp(x, z, m) fmt.Println(x) }