(format t "~{~a~%~}"
(loop for (sum . list) = '(1 1)
then (if (<= sum 2014)
(list* (+ sum (car list) 1) (1+ (car list)) list)
(cons (- sum (car (last list))) (nbutlast list)))
if (= sum 2014) collect (reverse list)
until (equal list '(2014))))
KGZvcm1hdCB0ICJ+e35hfiV+fSIKCQkobG9vcCBmb3IgKHN1bSAuIGxpc3QpID0gJygxIDEpCgkJICAgICAgdGhlbiAoaWYgKDw9IHN1bSAyMDE0KQoJCQkJICAgICAgIChsaXN0KiAoKyBzdW0gKGNhciBsaXN0KSAxKSAoMSsgKGNhciBsaXN0KSkgbGlzdCkKCQkJCSAgICAgICAoY29ucyAoLSBzdW0gKGNhciAobGFzdCBsaXN0KSkpIChuYnV0bGFzdCBsaXN0KSkpCgkJICAgICAgaWYgKD0gc3VtIDIwMTQpIGNvbGxlY3QgKHJldmVyc2UgbGlzdCkKCQkgICAgICB1bnRpbCAoZXF1YWwgbGlzdCAnKDIwMTQpKSkp