import seaborn as sns
import matplotlib.pyplot as plt
def plot_flights_heatmap():
flights_data = sns.load_dataset('flights')
flights_pivot = flights_data.pivot("month", "year", "passengers")
sns.heatmap(flights_pivot, annot=True, fmt="d")
plt.title('Monthly Passengers over Years')
plt.show()
plot_flights_heatmap()