#K56352. Taco Mood Classification Problem

    ID: 30179 Type: Default 1000ms 256MiB

Taco Mood Classification Problem

Taco Mood Classification Problem

You are given a string containing space-separated emojis. Your task is to determine the mood of the message by checking each emoji in order. The rules for classification are as follows:

  • If an emoji is one of the happy emojis \(\{😊, \;😁, \;😋, \;🤣\}\), output Happy immediately.
  • Otherwise, if an emoji is one of the sad emojis \(\{😔, \;😭, \;😢, \;☹️\}\), output Sad immediately.
  • If no emoji matches any of the happy or sad sets, output Neutral.

Note that you should process the emojis in the order they appear in the input, and the decision is made based solely on the first encountered matching emoji.

inputFormat

The input consists of a single line containing a string of space-separated emojis. The string may be empty.

outputFormat

Output a single word: Happy, Sad, or Neutral depending on the classification rules described above.

## sample
😊 😂 🙃 😔
Happy