import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

public class Main {
	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		char[] input = sc.next().toCharArray();
		for(int i=1;i<input.length;i++) {
			if(input[i]==input[i-1]) {System.out.println("Bad"); return;}
		}
		System.out.println("Good");
		
	}
} import java.util.Arrays; Arrays java.util import java.util.HashMap; HashMap java.util import java.util.Map; Map java.util import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		char[] input = sc.next().toCharArray();
		for(int i=1;i<input.length;i++) {
			if(input[i]==input[i-1]) {System.out.println("Bad"); return;}
		}
		System.out.println("Good");
		
	}
} Main public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		char[] input = sc.next().toCharArray();
		for(int i=1;i<input.length;i++) {
			if(input[i]==input[i-1]) {System.out.println("Bad"); return;}
		}
		System.out.println("Good");
		
	} main {
		Scanner sc = new Scanner(System.in);
		char[] input = sc.next().toCharArray();
		for(int i=1;i<input.length;i++) {
			if(input[i]==input[i-1]) {System.out.println("Bad"); return;}
		}
		System.out.println("Good");
		
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) char[] input = sc.next().toCharArray(); input sc.next().toCharArray() sc.next().toCharArray sc.next() sc.next sc for(int i=1;i<input.length;i++) {
			if(input[i]==input[i-1]) {System.out.println("Bad"); return;}
		} int i=1; int i=1; i 1 i<input.length i input.length input input.length i++ i++ i {
			if(input[i]==input[i-1]) {System.out.println("Bad"); return;}
		} {
			if(input[i]==input[i-1]) {System.out.println("Bad"); return;}
		} if(input[i]==input[i-1]) {System.out.println("Bad"); return;} input[i]==input[i-1] input[i] input i input[i-1] input i-1 i 1 {System.out.println("Bad"); return;} System.out.println("Bad") System.out.println System.out System System.out "Bad" return; 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 sc = new Scanner(System.in);
		char[] input = sc.next().toCharArray();
		for(int i=1;i<input.length;i++) {
			if(input[i]==input[i-1]) {System.out.println("Bad"); return;}
		}
		System.out.println("Good");
		
	}
} public class Main {
	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		char[] input = sc.next().toCharArray();
		for(int i=1;i<input.length;i++) {
			if(input[i]==input[i-1]) {System.out.println("Bad"); return;}
		}
		System.out.println("Good");
		
	}
} Main
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

public class Main {
	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		char[] input = sc.next().toCharArray();
		for(int i=1;i<input.length;i++) {
			if(input[i]==input[i-1]) {System.out.println("Bad"); return;}
		}
		System.out.println("Good");
		
	}
}
