Expected inflation and output variability in flexible price and contracting models