import java.util.*;
public class Main {

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		
		char[] s = stdIn.next().toCharArray();
		
		if(s[0]==s[1] || s[1] == s[2] || s[2]==s[3]) {
			System.out.println("Bad");
		}else {
			System.out.println("Good");
		}
		
		
	}

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

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		
		char[] s = stdIn.next().toCharArray();
		
		if(s[0]==s[1] || s[1] == s[2] || s[2]==s[3]) {
			System.out.println("Bad");
		}else {
			System.out.println("Good");
		}
		
		
	}

} Main public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		
		char[] s = stdIn.next().toCharArray();
		
		if(s[0]==s[1] || s[1] == s[2] || s[2]==s[3]) {
			System.out.println("Bad");
		}else {
			System.out.println("Good");
		}
		
		
	} main {
		Scanner stdIn = new Scanner(System.in);
		
		char[] s = stdIn.next().toCharArray();
		
		if(s[0]==s[1] || s[1] == s[2] || s[2]==s[3]) {
			System.out.println("Bad");
		}else {
			System.out.println("Good");
		}
		
		
	} Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) char[] s = stdIn.next().toCharArray(); s stdIn.next().toCharArray() stdIn.next().toCharArray stdIn.next() stdIn.next stdIn if(s[0]==s[1] || s[1] == s[2] || s[2]==s[3]) {
			System.out.println("Bad");
		}else {
			System.out.println("Good");
		} s[0]==s[1] || s[1] == s[2] || s[2]==s[3] s[0]==s[1] || s[1] == s[2] || s[2]==s[3] s[0]==s[1] s[0] s 0 s[1] s 1 s[1] == s[2] s[1] s 1 s[2] s 2 s[2]==s[3] s[2] s 2 s[3] s 3 {
			System.out.println("Bad");
		} System.out.println("Bad") System.out.println System.out System System.out "Bad" {
			System.out.println("Good");
		} System.out.println("Good") System.out.println System.out System System.out "Good" String[] args args public class Main {

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		
		char[] s = stdIn.next().toCharArray();
		
		if(s[0]==s[1] || s[1] == s[2] || s[2]==s[3]) {
			System.out.println("Bad");
		}else {
			System.out.println("Good");
		}
		
		
	}

} public class Main {

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		
		char[] s = stdIn.next().toCharArray();
		
		if(s[0]==s[1] || s[1] == s[2] || s[2]==s[3]) {
			System.out.println("Bad");
		}else {
			System.out.println("Good");
		}
		
		
	}

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

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		
		char[] s = stdIn.next().toCharArray();
		
		if(s[0]==s[1] || s[1] == s[2] || s[2]==s[3]) {
			System.out.println("Bad");
		}else {
			System.out.println("Good");
		}
		
		
	}

}
