SCOTTSDALE, Ariz. (AP) Jake Arrieta left the game in the first inning and Madison Bumgarner left in the fourth as the Chicago Cubs outlasted the San Francisco Giants 16-14 on Thursday night.

The four-hour game had a combined 33 hits, three each by the Cubs Dexter Fowler and the Giants Joe Panik.

Kris Bryant drove in three, Fowler, Jason Heyward and Anthony Rizzo each had a pair of RBIs for the Cubs.

More from FoxSports

Hunter Pence hit his sixth homer and drove in a pair. Denard Span and Angel Pagan each drove in two runs. Matt Duffy, Brandon Crawford and Brandon Belt also drove in runs.

Arrieta recorded one out and gave up five runs before departing with a blister on his right thumb. Bumgarner allowed five runs in 3 2/3 innings.