Xi, Putin and Modi share a laugh at security summit