{"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\u003eAnton likes to play chess, and so does his friend Danik.\u003c/p\u003e\u003cp\u003eOnce they have played \u003cspan class\u003d\"tex-span\"\u003e\u003ci\u003en\u003c/i\u003e\u003c/span\u003e games in a row. For each game it\u0027s known who was the winner\u0026nbsp;— Anton or Danik. None of the games ended with a tie.\u003c/p\u003e\u003cp\u003eNow Anton wonders, who won more games, he or Danik? Help him determine this.\u003c/p\u003e"}},{"title":"Input","value":{"format":"HTML","content":"\u003cp\u003eThe first line of the input contains a single integer \u003cspan class\u003d\"tex-span\"\u003e\u003ci\u003en\u003c/i\u003e\u003c/span\u003e (\u003cspan class\u003d\"tex-span\"\u003e1 ≤ \u003ci\u003en\u003c/i\u003e ≤ 100 000\u003c/span\u003e)\u0026nbsp;— the number of games played.\u003c/p\u003e\u003cp\u003eThe second line contains a string \u003cspan class\u003d\"tex-span\"\u003e\u003ci\u003es\u003c/i\u003e\u003c/span\u003e, consisting of \u003cspan class\u003d\"tex-span\"\u003e\u003ci\u003en\u003c/i\u003e\u003c/span\u003e uppercase English letters \u0027\u003cspan class\u003d\"tex-font-style-tt\"\u003eA\u003c/span\u003e\u0027 and \u0027\u003cspan class\u003d\"tex-font-style-tt\"\u003eD\u003c/span\u003e\u0027\u0026nbsp;— the outcome of each of the games. The \u003cspan class\u003d\"tex-span\"\u003e\u003ci\u003ei\u003c/i\u003e\u003c/span\u003e-th character of the string is equal to \u0027\u003cspan class\u003d\"tex-font-style-tt\"\u003eA\u003c/span\u003e\u0027 if the Anton won the \u003cspan class\u003d\"tex-span\"\u003e\u003ci\u003ei\u003c/i\u003e\u003c/span\u003e-th game and \u0027\u003cspan class\u003d\"tex-font-style-tt\"\u003eD\u003c/span\u003e\u0027 if Danik won the \u003cspan class\u003d\"tex-span\"\u003e\u003ci\u003ei\u003c/i\u003e\u003c/span\u003e-th game.\u003c/p\u003e"}},{"title":"Output","value":{"format":"HTML","content":"\u003cp\u003eIf Anton won more games than Danik, print \"\u003cspan class\u003d\"tex-font-style-tt\"\u003eAnton\u003c/span\u003e\" (without quotes) in the only line of the output.\u003c/p\u003e\u003cp\u003eIf Danik won more games than Anton, print \"\u003cspan class\u003d\"tex-font-style-tt\"\u003eDanik\u003c/span\u003e\" (without quotes) in the only line of the output.\u003c/p\u003e\u003cp\u003eIf Anton and Danik won the same number of games, print \"\u003cspan class\u003d\"tex-font-style-tt\"\u003eFriendship\u003c/span\u003e\" (without quotes).\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\u003e6\nADAAAA\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003eAnton\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\u003e7\nDDDAADA\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003eDanik\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\u003e6\nDADADA\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003eFriendship\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}},{"title":"Note","value":{"format":"HTML","content":"\u003cp\u003eIn the first sample, Anton won \u003cspan class\u003d\"tex-span\"\u003e6\u003c/span\u003e games, while Danik\u0026nbsp;— only \u003cspan class\u003d\"tex-span\"\u003e1\u003c/span\u003e. Hence, the answer is \"\u003cspan class\u003d\"tex-font-style-tt\"\u003eAnton\u003c/span\u003e\".\u003c/p\u003e\u003cp\u003eIn the second sample, Anton won \u003cspan class\u003d\"tex-span\"\u003e3\u003c/span\u003e games and Danik won \u003cspan class\u003d\"tex-span\"\u003e4\u003c/span\u003e games, so the answer is \"\u003cspan class\u003d\"tex-font-style-tt\"\u003eDanik\u003c/span\u003e\".\u003c/p\u003e\u003cp\u003eIn the third sample, both Anton and Danik won \u003cspan class\u003d\"tex-span\"\u003e3\u003c/span\u003e games and the answer is \"\u003cspan class\u003d\"tex-font-style-tt\"\u003eFriendship\u003c/span\u003e\".\u003c/p\u003e"}}]}