Hammer, you are wrong.

You need 347 actions, 83 barrels, and 1321 shots from each combination.

27 shots? May as well shoot three shots with the same barrel action and ammo. ::)