{"trustable":false,"sections":[{"title":"","value":{"format":"HTML","content":"\u003cp\u003e\nJumping is healthy. But excess of anything is bad. So, You want to jump in a perfect discipline. You become healthy if the absolute values of the difference between every consecutive pair of integers are all numbers from \u003ci\u003e1\u003c/i\u003e through \u003ci\u003en-1\u003c/i\u003e, where \u003ci\u003en\u003c/i\u003e is the size of the sequence. For example,\u003c/p\u003e\n\t\n\u003cpre\u003e\n4 2 1 -2\n\u003c/pre\u003e\n\u003cp\u003e\nis such a sequence that can make you healthy. Because the absolute differences are 2, 1 and 3 respectively. Now can you help yourself to become healthy?\u003c/p\u003e"}},{"title":"Input","value":{"format":"HTML","content":"\u003cp\u003e\n\tThe input consists of multiple lines, each containing an integer n which does not exceed 3000 followed by n integers which represent the sequence.\u003c/p\u003e"}},{"title":"Output","value":{"format":"HTML","content":"\u003cp\u003e\n\tFor each line of input, generate a line of output saying \u0026quot;Jolly\u0026quot; or \u0026quot;Not jolly\u0026quot;.\u003c/p\u003e"}},{"title":"Sample Input","value":{"format":"HTML","content":"\u003cpre\u003e\n4 1 4 2 3\n5 1 4 2 -1 6\u003c/pre\u003e"}},{"title":"Sample Output","value":{"format":"HTML","content":"\u003cpre\u003e\nJolly\nNot jolly\u003c/pre\u003e"}}]}