{"trustable":false,"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":"\u003cstyle type\u003d\u0027text/css\u0027\u003e .input, .output {border: 1px solid #888888;} .output {margin-bottom:1em;position:relative;top:-1px;} .output pre,.input pre {background-color:#EFEFEF;line-height:1.25em;margin:0;padding:0.25em;} .title {background-color:#FFFFFF;border-bottom: 1px solid #888888;font-family:arial;font-weight:bold;padding:0.25em;} \u003c/style\u003e \u003cscript type\u003d\"text/x-mathjax-config\"\u003e\n MathJax.Hub.Config({\n tex2jax: {inlineMath: [[\u0027$$$\u0027,\u0027$$$\u0027]], displayMath: [[\u0027$$$$$$\u0027,\u0027$$$$$$\u0027]]}\n });\n \u003c/script\u003e\n \u003cscript type\u003d\"text/javascript\" async\n src\u003d\"https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config\u003dTeX-AMS-MML_HTMLorMML\"\u003e\n \u003c/script\u003e\n\u003cp\u003eBjorn Ironside likes to play chess, and so does his enemy King Harald.\u003c/p\u003e\n\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;— Bjorn Ironside or King Harald. None of the games ended with a tie.\u003c/p\u003e\n\u003cp\u003eNow Bjorn Ironside wonders, who won more games, he or King Harald? 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\n\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 Bjorn Ironside 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 King Harald 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 Bjorn Ironside won more games than King Harald, print \"\u003cspan class\u003d\"tex-font-style-tt\"\u003eAnton\u003c/span\u003e\" (without quotes) in the only line of the output.\u003c/p\u003e\n\u003cp\u003eIf King Harald won more games than Bjorn Ironside, print \"\u003cspan class\u003d\"tex-font-style-tt\"\u003eDanik\u003c/span\u003e\" (without quotes) in the only line of the output.\u003c/p\u003e\n\u003cp\u003eIf Bjorn Ironside and King Harald 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":"\u003cdiv class\u003d\"sample-test\"\u003e\n \u003cdiv class\u003d\"input\"\u003e\n \u003cdiv class\u003d\"title\"\u003e\n Input\n \u003c/div\u003e\n \u003cpre\u003e6\u003cbr\u003eADAAAA\u003cbr\u003e\u003c/pre\u003e\n \u003c/div\u003e\n \u003cdiv class\u003d\"output\"\u003e\n \u003cdiv class\u003d\"title\"\u003e\n Output\n \u003c/div\u003e\n \u003cpre\u003eAnton\u003cbr\u003e\u003c/pre\u003e\n \u003c/div\u003e\n \u003cdiv class\u003d\"input\"\u003e\n \u003cdiv class\u003d\"title\"\u003e\n Input\n \u003c/div\u003e\n \u003cpre\u003e7\u003cbr\u003eDDDAADA\u003cbr\u003e\u003c/pre\u003e\n \u003c/div\u003e\n \u003cdiv class\u003d\"output\"\u003e\n \u003cdiv class\u003d\"title\"\u003e\n Output\n \u003c/div\u003e\n \u003cpre\u003eDanik\u003cbr\u003e\u003c/pre\u003e\n \u003c/div\u003e\n \u003cdiv class\u003d\"input\"\u003e\n \u003cdiv class\u003d\"title\"\u003e\n Input\n \u003c/div\u003e\n \u003cpre\u003e6\u003cbr\u003eDADADA\u003cbr\u003e\u003c/pre\u003e\n \u003c/div\u003e\n \u003cdiv class\u003d\"output\"\u003e\n \u003cdiv class\u003d\"title\"\u003e\n Output\n \u003c/div\u003e\n \u003cpre\u003eFriendship\u003cbr\u003e\u003c/pre\u003e\n \u003c/div\u003e\n\u003c/div\u003e"}},{"title":"Note","value":{"format":"HTML","content":"\u003cp\u003eIn the first sample, Bjorn Ironside won \u003cspan class\u003d\"tex-span\"\u003e6\u003c/span\u003e games, while King Harald\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\n\u003cp\u003eIn the second sample, Bjorn Ironside won \u003cspan class\u003d\"tex-span\"\u003e3\u003c/span\u003e games and King Harald 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\n\u003cp\u003eIn the third sample, both Bjorn Ironside and King Harald 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"}}]}