{"trustable":false,"sections":[{"title":"","value":{"format":"HTML","content":"\n \u003cdiv class\u003d\"ptx\" lang\u003d\"en-US\"\u003e\n \u003cspan lang\u003d\"en-us\"\u003e\u003cp\u003eThe galaxy war between the Empire Draco and the Commonwealth of Zibu broke out 3 years ago. Draco established a line of defense called Grot. Grot is a straight line with \u003ci\u003e N\u003c/i\u003e defense stations. Because of the cooperation of the stations, Zibu’s Marine Glory cannot march any further but stay outside the line.\u003c/p\u003e\u003cp\u003eA mystery Information Group X benefits form selling information to both sides of the war. Today you the administrator of Zibu’s Intelligence Department got a piece of information about Grot’s defense stations’ arrangement from Information Group X. Your task is to determine whether the information is reliable.\u003c/p\u003e\u003cp\u003eThe information consists of \u003ci\u003e M\u003c/i\u003e tips. Each tip is either precise or vague.\u003c/p\u003e\u003cp\u003ePrecise tip is in the form of \u003ccode\u003eP A B X\u003c/code\u003e, means defense station \u003ci\u003e A\u003c/i\u003e is \u003ci\u003eX\u003c/i\u003e light-years north of defense station \u003ci\u003eB\u003c/i\u003e.\u003c/p\u003e\u003cp\u003eVague tip is in the form of \u003ccode\u003e V A B\u003c/code\u003e, means defense station \u003ci\u003eA\u003c/i\u003e is in the north of defense station \u003ci\u003eB\u003c/i\u003e, at least 1 light-year, but the precise distance is unknown.\u003c/p\u003e\u003c/span\u003e\n \u003c/div\u003e\n一天南北线上有n个防御站,有m条信息描述他们之间的位置关系,问有没有可能存在这样一种位置布置符合所给的位置关系。\n\u003cbr\u003e关系有两种:\n\u003cbr\u003e一种是 P A B X,表示A在B北边X光年的位置,\n\u003cbr\u003eV A B表示A在B北边至少1光年位置。"}},{"title":"Input","value":{"format":"HTML","content":"\n \u003cdiv class\u003d\"ptx\" lang\u003d\"en-US\"\u003e\n \u003cspan lang\u003d\"en-us\"\u003e\u003cp\u003eThere are several test cases in the input. Each test case starts with two integers \u003ci\u003eN\u003c/i\u003e (0 \u0026lt; \u003ci\u003eN\u003c/i\u003e ≤ 1000) and \u003ci\u003eM\u003c/i\u003e (1 ≤ \u003ci\u003eM\u003c/i\u003e ≤ 100000).The next \u003ci\u003eM\u003c/i\u003e line each describe a tip, either in precise form or vague form.\u003c/p\u003e\u003c/span\u003e\n \u003c/div\u003e\n\u003cbr\u003e有多组输入数据,每组测试数据,第一行两个整数N和M。\n\u003cbr\u003e接下来M行,每行一条信息。"}},{"title":"Output","value":{"format":"HTML","content":"\n \u003cdiv class\u003d\"ptx\" lang\u003d\"en-US\"\u003e\n \u003cspan lang\u003d\"en-us\"\u003e\u003cp\u003eOutput one line for each test case in the input. Output “Reliable” if It is possible to arrange \u003ci\u003eN\u003c/i\u003e defense stations satisfying all the \u003ci\u003eM\u003c/i\u003e tips, otherwise output “Unreliable”.\u003c/p\u003e\u003c/span\u003e\n \u003c/div\u003e\n\u003cbr\u003e如果这M条信息,没有矛盾,输出Reliable,否则输出Unreliable"}},{"title":"Sample Input","value":{"format":"HTML","content":"\u003cpre class\u003d\"sio\"\u003e3 4\nP 1 2 1\nP 2 3 1\nV 1 3\nP 1 3 1\n5 5\nV 1 2\nV 2 3\nV 3 4\nV 4 5\nV 3 5\u003c/pre\u003e"}},{"title":"Sample Output","value":{"format":"HTML","content":"\u003cpre class\u003d\"sio\"\u003eUnreliable\nReliable\u003c/pre\u003e"}}]}