#P11576. Barley's Treat Happiness
Barley's Treat Happiness
Barley's Treat Happiness
Barley the dog adores treats. At the end of each day, his mood depends on the treats he has received in terms of both their sizes and their amounts. There are three sizes of treats: small, medium, and large. If Barley receives S small treats, M medium treats, and L large treats, his happiness value is calculated as:
\( 1\times S + 2\times M + 3\times L \)
If the happiness value is greater than or equal to 10, then Barley is Happy; otherwise, he is Sad.
inputFormat
The input consists of a single line containing three integers S, M, and L representing the number of small, medium, and large treats respectively.
outputFormat
Output a single word: "Happy" if Barley's happiness value is at least 10, or "Sad" otherwise.
sample
1 2 1
Happy