{"trustable":true,"sections":[{"title":"","value":{"format":"HTML","content":"\u003cimg src\u003d\"CDN_BASE_URL/a64f64479d9437bf747b1ad5425cdc17?v\u003d1714712664\" align\u003d\"right\"\u003eThe young and very promising cryptographer Odd Even has implemented the security module of a large system with thousands of users, which is now in use in his company. The cryptographic keys are created from the product of two primes, and are believed to be secure because there is no known method for factoring such a product effectively.\r\u003cbr\u003eWhat Odd Even did not think of, was that both factors in a key should be large, not just their product. It is now possible that some of the users of the system have weak keys. In a desperate attempt not to be fired, Odd Even secretly goes through all the users keys, to check if they are strong enough. He uses his very poweful Atari, and is especially careful when checking his boss\u0027 key."}},{"title":"Input","value":{"format":"HTML","content":"The input consists of no more than 20 test cases. Each test case is a line with the integers 4 \u0026lt;\u003d K \u0026lt;\u003d 10\u003csup\u003e100\u003c/sup\u003e and 2 \u0026lt;\u003d L \u0026lt;\u003d 10\u003csup\u003e6\u003c/sup\u003e. K is the key itself, a product of two primes. L is the wanted minimum size of the factors in the key. The input set is terminated by a case where K \u003d 0 and L \u003d 0."}},{"title":"Output","value":{"format":"HTML","content":"For each number K, if one of its factors are strictly less than the required L, your program should output \"BAD p\", where p is the smallest factor in K. Otherwise, it should output \"GOOD\". Cases should be separated by a line-break."}},{"title":"Sample","value":{"format":"HTML","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003e143 10\r\n143 20\r\n667 20\r\n667 30\r\n2573 30\r\n2573 40\r\n0 0\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003eGOOD\r\nBAD 11\r\nGOOD\r\nBAD 23\r\nGOOD\r\nBAD 31\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}