{"trustable":false,"prependHtml":"\u003cscript\u003e window.katexOptions \u003d { disable: true }; \u003c/script\u003e\n\u003cscript type\u003d\"text/x-mathjax-config\"\u003e\n MathJax.Hub.Config({\n tex2jax: {\n inlineMath: [[\u0027$$$\u0027,\u0027$$$\u0027], [\u0027$\u0027,\u0027$\u0027]],\n displayMath: [[\u0027$$$$$$\u0027,\u0027$$$$$$\u0027], [\u0027$$\u0027,\u0027$$\u0027]]\n }\n });\n\u003c/script\u003e\n\u003cscript async src\u003d\"https://mathjax.codeforces.org/MathJax.js?config\u003dTeX-AMS-MML_HTMLorMML\" type\u003d\"text/javascript\"\u003e\u003c/script\u003e","sections":[{"title":"","value":{"format":"HTML","content":"\u003cscript type\u003d\u0027text/x-mathjax-config\u0027\u003eMathJax.Hub.Config({tex2jax: { inlineMath: [[\u0027$\u0027,\u0027$\u0027]] } }); \u003c/script\u003e\n\u003cscript type\u003d\u0027text/javascript\u0027 src\u003d\u0027https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config\u003dTeX-AMS-MML_HTMLorMML\u0027\u003e\u003c/script\u003e\n\u003cscript type\u003d\u0027text/javascript\u0027\u003esetTimeout(function(){MathJax.Hub.Queue([\u0027Typeset\u0027, MathJax.Hub, \u0027left_view\u0027]);}, 2000);\u003c/script\u003e\n\u003cdiv class\u003d\"panel_content\"\u003e\n 绿名DD最近对菲波那契数列(Fibonacci numbers)非常感兴趣,它是这样定义的: \n \u003cbr\u003eF(1)\u003d1; \n \u003cbr\u003eF(2)\u003d2; \n \u003cbr\u003eF(n)\u003dF(n-1)+F(n-2)(n\u0026gt;\u003d3); \n \u003cbr\u003e所以,1,2,3,5,8,13……就是菲波那契数列。 \n \u003cbr\u003e今天,他口胡了一道关于Fibonacci的题目,它是一个小游戏,定义如下: \n \u003cbr\u003e1、\u0026nbsp;\u0026nbsp;这是一个二人游戏; \n \u003cbr\u003e2、\u0026nbsp;\u0026nbsp;一共有3堆石子,数量分别是m, n, p个; \n \u003cbr\u003e3、\u0026nbsp;\u0026nbsp;两人轮流走; \n \u003cbr\u003e4、\u0026nbsp;\u0026nbsp;每走一步可以选择任意一堆石子,然后取走f个; \n \u003cbr\u003e5、\u0026nbsp;\u0026nbsp;f只能是菲波那契数列中的元素(即每次只能取1,2,3,5,8…等数量); \n \u003cbr\u003e6、\u0026nbsp;\u0026nbsp;最先取光所有石子的人为胜者; \n \u003cbr\u003e \n \u003cbr\u003e假设双方都使用最优策略,请判断先手的人会赢还是后手的人会赢。 \n \u003cbr\u003e \n\u003c/div\u003e"}},{"title":"Input","value":{"format":"HTML","content":"输入数据包含多个测试用例,每个测试用例占一行,包含3个整数m,n,p(1\u0026lt;\u003dm,n,p\u0026lt;\u003d1000)。 \n\u003cbr\u003em\u003dn\u003dp\u003d0则表示输入结束。 \n\u003cbr\u003e"}},{"title":"Output","value":{"format":"HTML","content":"如果先手的人能赢,请输出“Fibo”,否则请输出“Nacci”,每个实例的输出占一行。 \n\u003cbr\u003e"}},{"title":"Sample Input","value":{"format":"HTML","content":"\u003cpre\u003e1 1 1\n1 4 1\n0 0 0\u003c/pre\u003e"}},{"title":"Sample Output","value":{"format":"HTML","content":"\u003cpre\u003eFibo\nNacci\u003c/pre\u003e"}}]}