Calcul du nombre heureux / triste

Positive Integer =
   
Result =
Calcul du nombre heureux / triste