#!/usr/bin/env gosh (define judge '(1 2 0)) (let* ((lst (read (open-input-string (string-append "(" (read-line) ")")))) (i (car lst)) (you (cadr lst))) (cond ((= i you) (display "Drew")) ((= you (list-ref judge i)) (display "Won")) (else (display "Lost"))) (newline))