import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
                solve();
	}

    private static void solve() {
    	Scanner sc = new Scanner(System.in);
    	char[] sCode = sc.next().toCharArray();

    	boolean isExistSameCode = false;
    	for(int i = 0; i < 3; i++)
    	{
    		if(sCode[i] == sCode[i+1]) {
    			isExistSameCode = true;
    			break;
    		}
    	}

    	if(isExistSameCode)
    	{
    		System.out.print("Bad");
    	}
    	else System.out.print("Good");
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
                solve();
	}

    private static void solve() {
    	Scanner sc = new Scanner(System.in);
    	char[] sCode = sc.next().toCharArray();

    	boolean isExistSameCode = false;
    	for(int i = 0; i < 3; i++)
    	{
    		if(sCode[i] == sCode[i+1]) {
    			isExistSameCode = true;
    			break;
    		}
    	}

    	if(isExistSameCode)
    	{
    		System.out.print("Bad");
    	}
    	else System.out.print("Good");
	}
} Main public static void main(String[] args) {
                solve();
	} main {
                solve();
	} solve() solve String[] args args private static void solve() {
    	Scanner sc = new Scanner(System.in);
    	char[] sCode = sc.next().toCharArray();

    	boolean isExistSameCode = false;
    	for(int i = 0; i < 3; i++)
    	{
    		if(sCode[i] == sCode[i+1]) {
    			isExistSameCode = true;
    			break;
    		}
    	}

    	if(isExistSameCode)
    	{
    		System.out.print("Bad");
    	}
    	else System.out.print("Good");
	} solve {
    	Scanner sc = new Scanner(System.in);
    	char[] sCode = sc.next().toCharArray();

    	boolean isExistSameCode = false;
    	for(int i = 0; i < 3; i++)
    	{
    		if(sCode[i] == sCode[i+1]) {
    			isExistSameCode = true;
    			break;
    		}
    	}

    	if(isExistSameCode)
    	{
    		System.out.print("Bad");
    	}
    	else System.out.print("Good");
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) char[] sCode = sc.next().toCharArray(); sCode sc.next().toCharArray() sc.next().toCharArray sc.next() sc.next sc boolean isExistSameCode = false; isExistSameCode false for(int i = 0; i < 3; i++)
    	{
    		if(sCode[i] == sCode[i+1]) {
    			isExistSameCode = true;
    			break;
    		}
    	} int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
    		if(sCode[i] == sCode[i+1]) {
    			isExistSameCode = true;
    			break;
    		}
    	} {
    		if(sCode[i] == sCode[i+1]) {
    			isExistSameCode = true;
    			break;
    		}
    	} if(sCode[i] == sCode[i+1]) {
    			isExistSameCode = true;
    			break;
    		} sCode[i] == sCode[i+1] sCode[i] sCode i sCode[i+1] sCode i+1 i 1 {
    			isExistSameCode = true;
    			break;
    		} isExistSameCode = true isExistSameCode true break; if(isExistSameCode)
    	{
    		System.out.print("Bad");
    	}
    	else System.out.print("Good"); isExistSameCode {
    		System.out.print("Bad");
    	} System.out.print("Bad") System.out.print System.out System System.out "Bad" System.out.print("Good") System.out.print System.out System System.out "Good" public class Main {
	public static void main(String[] args) {
                solve();
	}

    private static void solve() {
    	Scanner sc = new Scanner(System.in);
    	char[] sCode = sc.next().toCharArray();

    	boolean isExistSameCode = false;
    	for(int i = 0; i < 3; i++)
    	{
    		if(sCode[i] == sCode[i+1]) {
    			isExistSameCode = true;
    			break;
    		}
    	}

    	if(isExistSameCode)
    	{
    		System.out.print("Bad");
    	}
    	else System.out.print("Good");
	}
} public class Main {
	public static void main(String[] args) {
                solve();
	}

    private static void solve() {
    	Scanner sc = new Scanner(System.in);
    	char[] sCode = sc.next().toCharArray();

    	boolean isExistSameCode = false;
    	for(int i = 0; i < 3; i++)
    	{
    		if(sCode[i] == sCode[i+1]) {
    			isExistSameCode = true;
    			break;
    		}
    	}

    	if(isExistSameCode)
    	{
    		System.out.print("Bad");
    	}
    	else System.out.print("Good");
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
                solve();
	}

    private static void solve() {
    	Scanner sc = new Scanner(System.in);
    	char[] sCode = sc.next().toCharArray();

    	boolean isExistSameCode = false;
    	for(int i = 0; i < 3; i++)
    	{
    		if(sCode[i] == sCode[i+1]) {
    			isExistSameCode = true;
    			break;
    		}
    	}

    	if(isExistSameCode)
    	{
    		System.out.print("Bad");
    	}
    	else System.out.print("Good");
	}
}
