{"trustable":true,"prependHtml":"\u003cstyle type\u003d\u0027text/css\u0027\u003e\n .input, .output {\n border: 1px solid #888888;\n }\n .output {\n margin-bottom: 1em;\n position: relative;\n top: -1px;\n }\n .output pre, .input pre {\n background-color: #EFEFEF;\n line-height: 1.25em;\n margin: 0;\n padding: 0.25em;\n }\n \u003c/style\u003e\n \u003clink rel\u003d\"stylesheet\" href\u003d\"//codeforces.org/s/96598/css/problem-statement.css\" type\u003d\"text/css\" /\u003e\n\u003cscript\u003e\n window.katexOptions \u003d {\n delimiters: [\n {left: \u0027$$$$$$\u0027, right: \u0027$$$$$$\u0027, display: true},\n {left: \u0027$$$\u0027, right: \u0027$$$\u0027, display: false},\n {left: \u0027$$\u0027, right: \u0027$$\u0027, display: true},\n {left: \u0027$\u0027, right: \u0027$\u0027, display: false}\n ]\n };\n\u003c/script\u003e\n","sections":[{"title":"","value":{"format":"HTML","content":"\u003cp\u003eBob has received a text message from his girlfriend Alice. The message consists only of colons (\"\u003cspan class\u003d\"tex-font-style-tt\"\u003e:\u003c/span\u003e\") and brackets (\"\u003cspan class\u003d\"tex-font-style-tt\"\u003e(\u003c/span\u003e\" and \"\u003cspan class\u003d\"tex-font-style-tt\"\u003e)\u003c/span\u003e\"). Two consecutive characters in the message form an emoticon if one of them is a colon and the other one is a bracket. If the bracket\u0027s inner side faces the colon, the emoticon is a smiley; otherwise it is a frowney. So, \"\u003cspan class\u003d\"tex-font-style-tt\"\u003e:)\u003c/span\u003e\" and \"\u003cspan class\u003d\"tex-font-style-tt\"\u003e(:\u003c/span\u003e\" are smilies, and \"\u003cspan class\u003d\"tex-font-style-tt\"\u003e:(\u003c/span\u003e\" and \"\u003cspan class\u003d\"tex-font-style-tt\"\u003e):\u003c/span\u003e\" are frownies. One character can belong to two emoticons: for example, there are both a smiley and a frowney in the message \"\u003cspan class\u003d\"tex-font-style-tt\"\u003e):)\u003c/span\u003e\".\u003c/p\u003e\u003cp\u003eUnfortunately, Bob has trouble understanding the message. He can only find out Alice\u0027s mood based on the number of emoticons in the message: \u003c/p\u003e\u003cul\u003e \u003cli\u003e If there are more smilies than frownies, Alice is happy. \u003c/li\u003e\u003cli\u003e If the number of smilies is equal to the number of frownies, Alice is just texting him because she\u0027s bored. \u003c/li\u003e\u003cli\u003e If there are more frownies than smilies, Alice is sad. \u003c/li\u003e\u003c/ul\u003e\u003cp\u003eHelp Bob determine how does Alice feel!\u003c/p\u003e"}},{"title":"Input","value":{"format":"HTML","content":"\u003cp\u003eThe first line contains a single integer \u003cspan class\u003d\"tex-span\"\u003e\u003ci\u003en\u003c/i\u003e\u003c/span\u003e, the length of the message (\u003cspan class\u003d\"tex-span\"\u003e1 ≤ \u003ci\u003en\u003c/i\u003e ≤ 10\u003csup class\u003d\"upper-index\"\u003e5\u003c/sup\u003e\u003c/span\u003e). The next line contains the message, a string consisting of \u003cspan class\u003d\"tex-span\"\u003e\u003ci\u003en\u003c/i\u003e\u003c/span\u003e characters. Each of the characters is either \"\u003cspan class\u003d\"tex-font-style-tt\"\u003e:\u003c/span\u003e\", \"\u003cspan class\u003d\"tex-font-style-tt\"\u003e(\u003c/span\u003e\" or \"\u003cspan class\u003d\"tex-font-style-tt\"\u003e)\u003c/span\u003e\".\u003c/p\u003e"}},{"title":"Output","value":{"format":"HTML","content":"\u003cp\u003eIn a single line, output either \"\u003cspan class\u003d\"tex-font-style-tt\"\u003eHAPPY\u003c/span\u003e\", \"\u003cspan class\u003d\"tex-font-style-tt\"\u003eBORED\u003c/span\u003e\" or \"\u003cspan class\u003d\"tex-font-style-tt\"\u003eSAD\u003c/span\u003e\" corresponding to Alice\u0027s mood.\u003c/p\u003e"}},{"title":"Examples","value":{"format":"HTML","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003e10\n:)))))))))\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003eHAPPY\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}},{"title":"","value":{"format":"HTML","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003e1\n:\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003eBORED\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}},{"title":"","value":{"format":"HTML","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003e8\n)::(:():\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003eSAD\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}