Caring for Kindergartener Padaeng-i
Time limit1sMemory limit1024 MB
Given T minutes and N candies with flavor durations, decide whether the candies' total duration is at least T.
- Level
Easy1 of 10
- Topics
- Array, Implementation
- Solved
- No attempts yet
Problem
Padaeng-i is a kindergartener, so he still loves sweets very much.

Also, Padaeng-i cries at all hours unless he gets candy.

You, who love Padaeng-i, have agreed to look after him for a set amount of time. You do not want to see him cry while you care for him, so you brought candy to keep him from crying. However, you were in such a hurry to see him that you packed the candy quickly and did not check whether you had enough to keep him from crying for the whole time.
You must look after Padaeng-i for minutes, and you have pieces of candy. Each candy stops his crying for a length of time that depends on its flavor: a candy with flavor stops his crying for minutes.
Input
The first line contains an integer , the number of minutes you must look after Padaeng-i. The second line contains an integer , the total number of candies you have. The third line contains integers separated by spaces, the flavor of each candy.
Output
If you can keep Padaeng-i from crying for minutes, print Padaeng_i Happy. Otherwise, print Padaeng_i Cry.