Олимпиадный тренинг

Задача 3991. Lucky number


Given a six digit number. Determine whether it is lucky (the sum of the first three digits is equal to the sum of the last three). If the number is happy, display the word HAPPY, otherwise, display the word NO.

Input
The input is a positive six-digit number.

Imprint
Display the answer to the problem.
 

 

Examples
# Input Output
1 111111 HAPPY
2 134211 NO