import java.util.*;
import java.io.*;

class Main {

	void solve () {

		char[] ar = in.next().toCharArray();
		if (ar[0]==ar[1] || ar[1]==ar[2] || ar[2]==ar[3]) out.println("Bad");
		else out.println("Good");
		
	}

	public static PrintWriter out = new PrintWriter(System.out);
	public static Scanner in = new Scanner(System.in);
	public static void main(String[] args) {
		new Main().solve();
		out.flush();
	}

} import java.util.*; util.* java import java.io.*; io.* java class Main {

	void solve () {

		char[] ar = in.next().toCharArray();
		if (ar[0]==ar[1] || ar[1]==ar[2] || ar[2]==ar[3]) out.println("Bad");
		else out.println("Good");
		
	}

	public static PrintWriter out = new PrintWriter(System.out);
	public static Scanner in = new Scanner(System.in);
	public static void main(String[] args) {
		new Main().solve();
		out.flush();
	}

} Main public static PrintWriter out = new PrintWriter(System.out); out new PrintWriter(System.out) public static Scanner in = new Scanner(System.in); in new Scanner(System.in) void solve () {

		char[] ar = in.next().toCharArray();
		if (ar[0]==ar[1] || ar[1]==ar[2] || ar[2]==ar[3]) out.println("Bad");
		else out.println("Good");
		
	} solve {

		char[] ar = in.next().toCharArray();
		if (ar[0]==ar[1] || ar[1]==ar[2] || ar[2]==ar[3]) out.println("Bad");
		else out.println("Good");
		
	} char[] ar = in.next().toCharArray(); ar in.next().toCharArray() in.next().toCharArray in.next() in.next in if (ar[0]==ar[1] || ar[1]==ar[2] || ar[2]==ar[3]) out.println("Bad");
		else out.println("Good"); ar[0]==ar[1] || ar[1]==ar[2] || ar[2]==ar[3] ar[0]==ar[1] || ar[1]==ar[2] || ar[2]==ar[3] ar[0]==ar[1] ar[0] ar 0 ar[1] ar 1 ar[1]==ar[2] ar[1] ar 1 ar[2] ar 2 ar[2]==ar[3] ar[2] ar 2 ar[3] ar 3 out.println("Bad") out.println out "Bad" out.println("Good") out.println out "Good" public static void main(String[] args) {
		new Main().solve();
		out.flush();
	} main {
		new Main().solve();
		out.flush();
	} new Main().solve() new Main().solve new Main() out.flush() out.flush out String[] args args
import java.util.*;
import java.io.*;

class Main {

	void solve () {

		char[] ar = in.next().toCharArray();
		if (ar[0]==ar[1] || ar[1]==ar[2] || ar[2]==ar[3]) out.println("Bad");
		else out.println("Good");
		
	}

	public static PrintWriter out = new PrintWriter(System.out);
	public static Scanner in = new Scanner(System.in);
	public static void main(String[] args) {
		new Main().solve();
		out.flush();
	}

}