Ren Ashbell

View as PDF

Submit solution

Points: 3 (partial)
Time limit: 1.0s
Memory limit: 256M

Author:
Problem type
Allowed languages
Ada, Assembly, Awk, Brain****, C, C#, C++, COBOL, CommonLisp, D, Dart, F#, Forth, Fortran, Go, Groovy, Haskell, Intercal, Java, JS, Kotlin, Lisp, Lua, Nim, ObjC, OCaml, Octave, Pascal, Perl, PHP, Pike, Prolog, Python, Racket, Ruby, Rust, Scala, Scheme, Sed, Swift, TCL, Text, Turing, VB, Zig

Ren Ashbell is often called the Strongest Blade Dancer. You have doubts that this is not actually true. Given the power level of N people, determine whether Ren Ashbell is the strongest (her power level is strictly greater than the power levels of all other people).

Input Specification

The first line of input will have N.

The next N lines of input will each have the power level of a person, a positive integer no more than 10\,000. The first of these lines will be Ren Ashbell's power level.

Output Specification

The first and only line of output should be YES if Ren Ashbell is the strongest or NO if Ren Ashbell is not the strongest.

Constraints

2 \le N \le 10

Sample Input

3
9001
8888
1324

Sample Output

YES


Comments