Nominal rigidities in both the intermediate goods sector and the final goods sector and equilibrium determinacy