Use case instead of cond (actually (condp = n) also could be used).