OTHS Coding Competition 2 P2 - Ghoul Investigators
View as PDFKaneki is being pursued by  ghoul investigators, with the 
 investigator having a maximum speed of 
. Since he doesn't want to
fight, Kaneki will simply run away if he is strictly faster than all investigators. Otherwise, he will have to fight them.
Given that Kaneki's maximum speed is , determine whether Kaneki can run away or if he will have to fight the ghoul investigators.
Constraints
Subtask 1 [40%]
Subtask 2 [60%]
No additional constraints.
Input Specification
The first line contains an integer , Kaneki's maximum speed.
The second line contains an integer , the number of ghoul investigators.
The next  lines contain 
 integer each, the speed of the 
 investigator.
Output Specification
Output run away if Kaneki is strictly faster than all ghoul investigators pursuing him, and fight otherwise.
Sample Input 1
50
4
50
14
10
34
Sample Output 1
fight
Explanation for Sample Output 1
Kaneki will have to fight as he is not strictly faster than the  investigator.
Sample Input 2
10
1
9
Sample Output 2
run away
Explanation for Sample Output 2
The only investigator pursuing Kaneki is slower than him so he can run away.
Comments