Comedy ends in happiness, while tragedy yields wisdom