(define p(read)) (define q (read)) (if (< (*(- 1 p)q) (*( * p(- 1 q))q) ) (print "YES")(print "NO"))