SP7035 CRYPTON - The Embarrassed Cryptographer

Description

The young and very promising cryptogra-

Input Format

The input consists of no more than 20 test cases. Each test case is a line with the integers 4

Output Format

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.