Question
Guardian Strength Balance Check

In a distant kingdom, there are five mystical guardians, each with unique strengths: S1, S2, S3, S4, and S5. To keep harmony in the realm, each guardian’s strength must remain less than the combined strength of the other four. If this balance is broken, a crisis looms over the kingdom. Can you determine if harmony is intact or if there’s an impending crisis?

Input
The first and the only line of input contains 5 space-separated integers S1, S2, S3, S4, and S5.

Constraints
0 ≤ S1, S2, S3, S4, S5 ≤ 100
Output
Output "Emergency" (without quotes) if there's an emergency, else output "Stable" (without quotes).
Example
Sample Input
1 2 3 4 5
Sample Output
Stable
Explanation
Power of 1st ranger = 1
Power of other 4 rangers = 2 + 3 + 4 + 5 = 14
Power of 2nd ranger = 2
Power of other 4 rangers = 1 + 3 + 4 + 5 = 13
Power of 3rd ranger = 3
Power of other 4 rangers = 1 + 2 + 4 + 5 = 12
Power of 4th ranger = 4
Power of other 4 rangers = 1 + 2 + 3 + 5 = 11
Power of 5th ranger = 5
Power of other 4 rangers = 1 + 2 + 3 + 4 = 10
For all 5 rangers, combined power of other 4 rangers is greater, thus the output will be "Stable".

Sample Input
1 2 3 4 100
Sample Output
Emergency
Explanation
The power of the 5th power ranger (100) is not less than the sum of powers of other power rangers (1+2+3+4=10).

Online