A student takes 3 exams and receives a score to 100 for every one of them.
He passes the exams if he has at least 50/100 on all three exams.
If the student receives at least 50/100 for two of the exams, his lowest score is at least 40/100 and the sum of all three scores is at least 150/300, the examination board will let him pass.
In all other cases, the student fails the exams.
The results of three courses in ascending order, each on a different line. You may assume that these are integers from the interval $$[0,100]$$. However, you have to check if the scores are in ascending order.
One line. If the scores are not in ascending order, this line will say "invalid input". Otherwise, it contains the student's result after the examination board meeting: "pass", "deliberated" or "fail". Minimize both the amount of conditions that need to be checked, and the complexity of every condition.
Input:
50
62
75
Output:
pass
Input:
43
52
82
Output:
deliberated
Input:
21
32
42
Output:
fail
Input:
41
52
53
Output:
fail
Input:
50
52
49
Output:
invalid input