Reverse-Engineering a joke