Suppose output prices across the economy rise.
Wage and input contracts do not immediately adjust to higher output prices.
Profit per unit rise, leading to an increase in production.
Eventually, these contracts will readjust to factor in the higher cost of living, erasing the increased profits and returning output back to YP