The president made all those who had been brought up laugh when he spoke onstage.