import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
    public static void main(String args[]) throws IOException {
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	String S = br.readLine();
	char array[] = S.toCharArray();
	if (array[0] != array[1] && array[1] != array[2] && array[2] != array[3])
	    System.out.println("Good");
	else
	    System.out.println("Bad");
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
    public static void main(String args[]) throws IOException {
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	String S = br.readLine();
	char array[] = S.toCharArray();
	if (array[0] != array[1] && array[1] != array[2] && array[2] != array[3])
	    System.out.println("Good");
	else
	    System.out.println("Bad");
    }
} Main public static void main(String args[]) throws IOException {
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	String S = br.readLine();
	char array[] = S.toCharArray();
	if (array[0] != array[1] && array[1] != array[2] && array[2] != array[3])
	    System.out.println("Good");
	else
	    System.out.println("Bad");
    } main {
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	String S = br.readLine();
	char array[] = S.toCharArray();
	if (array[0] != array[1] && array[1] != array[2] && array[2] != array[3])
	    System.out.println("Good");
	else
	    System.out.println("Bad");
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String S = br.readLine(); S br.readLine() br.readLine br char array[] = S.toCharArray(); array S.toCharArray() S.toCharArray S if (array[0] != array[1] && array[1] != array[2] && array[2] != array[3])
	    System.out.println("Good");
	else
	    System.out.println("Bad"); array[0] != array[1] && array[1] != array[2] && array[2] != array[3] array[0] != array[1] && array[1] != array[2] && array[2] != array[3] array[0] != array[1] array[0] array 0 array[1] array 1 array[1] != array[2] array[1] array 1 array[2] array 2 array[2] != array[3] array[2] array 2 array[3] array 3 System.out.println("Good") System.out.println System.out System System.out "Good" System.out.println("Bad") System.out.println System.out System System.out "Bad" String args[] args public class Main {
    public static void main(String args[]) throws IOException {
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	String S = br.readLine();
	char array[] = S.toCharArray();
	if (array[0] != array[1] && array[1] != array[2] && array[2] != array[3])
	    System.out.println("Good");
	else
	    System.out.println("Bad");
    }
} public class Main {
    public static void main(String args[]) throws IOException {
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	String S = br.readLine();
	char array[] = S.toCharArray();
	if (array[0] != array[1] && array[1] != array[2] && array[2] != array[3])
	    System.out.println("Good");
	else
	    System.out.println("Bad");
    }
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
    public static void main(String args[]) throws IOException {
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	String S = br.readLine();
	char array[] = S.toCharArray();
	if (array[0] != array[1] && array[1] != array[2] && array[2] != array[3])
	    System.out.println("Good");
	else
	    System.out.println("Bad");
    }
}
