{"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\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 type\u003d\"text/javascript\" async src\u003d\"https://mathjax.codeforces.org/MathJax.js?config\u003dTeX-AMS_HTML-full\"\u003e\u003c/script\u003e","sections":[{"title":"","value":{"format":"PLAIN","content":"Artist喜欢吃icecream,这天,Artist终于获得了能吃超级多个icecream的机会,但是这些\nicecream只有两种口味,并且如果Artist连续吃一种口味的icecream大于等于k次,会因为吃腻而停止往后吃。\n假设这些icecream排列在长为10^100的坐标轴上:\n坐标为a的倍数的位置有第一种口味icecream,坐标为b的倍数的位置有第二种口味icecream,\n坐标同时为a和b的倍数的位置有两种口味(在这个位置上时,可以任选一种口味吃)。\n请帮Artist计算一下,她能否从坐标0一直吃到10^100结束。"}},{"title":"Input","value":{"format":"PLAIN","content":"T组输入(T≤1000)\n每行三个数\na,b,k(1≤a,b,≤1e9,2≤k≤1e9)"}},{"title":"Output","value":{"format":"PLAIN","content":"能吃到结束输出OBEY,\n不能吃到结束输出REBEL。"}},{"title":"Example","value":{"format":"PLAIN","content":"输入:\n4\n3 7 2\n2 9 2\n5 2 3\n1 1 2\n\n输出:\nREBEL\nREBEL\nOBEY\nOBEY"}}]}