import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		
		String l = sc.next();
		char []a = l.toCharArray();
		int count= 0;
		
		for(int i = 1; i <=3; i++) {
			if(a[i] == a[i-1]) {
				count++;
			}			
		}
		if(count == 0) {
			System.out.println("Good");
		}
		if(count != 0) {
			System.out.println("Bad");
		}

	}

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

	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		
		String l = sc.next();
		char []a = l.toCharArray();
		int count= 0;
		
		for(int i = 1; i <=3; i++) {
			if(a[i] == a[i-1]) {
				count++;
			}			
		}
		if(count == 0) {
			System.out.println("Good");
		}
		if(count != 0) {
			System.out.println("Bad");
		}

	}

} Main public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		
		String l = sc.next();
		char []a = l.toCharArray();
		int count= 0;
		
		for(int i = 1; i <=3; i++) {
			if(a[i] == a[i-1]) {
				count++;
			}			
		}
		if(count == 0) {
			System.out.println("Good");
		}
		if(count != 0) {
			System.out.println("Bad");
		}

	} main {
		
		Scanner sc = new Scanner(System.in);
		
		String l = sc.next();
		char []a = l.toCharArray();
		int count= 0;
		
		for(int i = 1; i <=3; i++) {
			if(a[i] == a[i-1]) {
				count++;
			}			
		}
		if(count == 0) {
			System.out.println("Good");
		}
		if(count != 0) {
			System.out.println("Bad");
		}

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String l = sc.next(); l sc.next() sc.next sc char []a = l.toCharArray(); a l.toCharArray() l.toCharArray l int count= 0; count 0 for(int i = 1; i <=3; i++) {
			if(a[i] == a[i-1]) {
				count++;
			}			
		} int i = 1; int i = 1; i 1 i <=3 i 3 i++ i++ i {
			if(a[i] == a[i-1]) {
				count++;
			}			
		} {
			if(a[i] == a[i-1]) {
				count++;
			}			
		} if(a[i] == a[i-1]) {
				count++;
			} a[i] == a[i-1] a[i] a i a[i-1] a i-1 i 1 {
				count++;
			} count++ count if(count == 0) {
			System.out.println("Good");
		} count == 0 count 0 {
			System.out.println("Good");
		} System.out.println("Good") System.out.println System.out System System.out "Good" if(count != 0) {
			System.out.println("Bad");
		} count != 0 count 0 {
			System.out.println("Bad");
		} 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) {
		
		Scanner sc = new Scanner(System.in);
		
		String l = sc.next();
		char []a = l.toCharArray();
		int count= 0;
		
		for(int i = 1; i <=3; i++) {
			if(a[i] == a[i-1]) {
				count++;
			}			
		}
		if(count == 0) {
			System.out.println("Good");
		}
		if(count != 0) {
			System.out.println("Bad");
		}

	}

} public class Main {

	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		
		String l = sc.next();
		char []a = l.toCharArray();
		int count= 0;
		
		for(int i = 1; i <=3; i++) {
			if(a[i] == a[i-1]) {
				count++;
			}			
		}
		if(count == 0) {
			System.out.println("Good");
		}
		if(count != 0) {
			System.out.println("Bad");
		}

	}

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

	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		
		String l = sc.next();
		char []a = l.toCharArray();
		int count= 0;
		
		for(int i = 1; i <=3; i++) {
			if(a[i] == a[i-1]) {
				count++;
			}			
		}
		if(count == 0) {
			System.out.println("Good");
		}
		if(count != 0) {
			System.out.println("Bad");
		}

	}

}
