

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		String h = sc.next();
		int flag =0;
		for(int i=0;i<h.length()-1;i++) {
			if(h.charAt(i)==h.charAt(i+1)) {
				flag =1;
				break;
			}
		}
		if(flag==0) {
			System.out.println("Good");
		}
		else {
			System.out.println("Bad");
		}

	}

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

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		String h = sc.next();
		int flag =0;
		for(int i=0;i<h.length()-1;i++) {
			if(h.charAt(i)==h.charAt(i+1)) {
				flag =1;
				break;
			}
		}
		if(flag==0) {
			System.out.println("Good");
		}
		else {
			System.out.println("Bad");
		}

	}

} Main public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		String h = sc.next();
		int flag =0;
		for(int i=0;i<h.length()-1;i++) {
			if(h.charAt(i)==h.charAt(i+1)) {
				flag =1;
				break;
			}
		}
		if(flag==0) {
			System.out.println("Good");
		}
		else {
			System.out.println("Bad");
		}

	} main {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		String h = sc.next();
		int flag =0;
		for(int i=0;i<h.length()-1;i++) {
			if(h.charAt(i)==h.charAt(i+1)) {
				flag =1;
				break;
			}
		}
		if(flag==0) {
			System.out.println("Good");
		}
		else {
			System.out.println("Bad");
		}

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String h = sc.next(); h sc.next() sc.next sc int flag =0; flag 0 for(int i=0;i<h.length()-1;i++) {
			if(h.charAt(i)==h.charAt(i+1)) {
				flag =1;
				break;
			}
		} int i=0; int i=0; i 0 i<h.length()-1 i h.length()-1 h.length() h.length h 1 i++ i++ i {
			if(h.charAt(i)==h.charAt(i+1)) {
				flag =1;
				break;
			}
		} {
			if(h.charAt(i)==h.charAt(i+1)) {
				flag =1;
				break;
			}
		} if(h.charAt(i)==h.charAt(i+1)) {
				flag =1;
				break;
			} h.charAt(i)==h.charAt(i+1) h.charAt(i) h.charAt h i h.charAt(i+1) h.charAt h i+1 i 1 {
				flag =1;
				break;
			} flag =1 flag 1 break; if(flag==0) {
			System.out.println("Good");
		}
		else {
			System.out.println("Bad");
		} flag==0 flag 0 {
			System.out.println("Good");
		} System.out.println("Good") System.out.println System.out System System.out "Good" {
			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) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		String h = sc.next();
		int flag =0;
		for(int i=0;i<h.length()-1;i++) {
			if(h.charAt(i)==h.charAt(i+1)) {
				flag =1;
				break;
			}
		}
		if(flag==0) {
			System.out.println("Good");
		}
		else {
			System.out.println("Bad");
		}

	}

} public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		String h = sc.next();
		int flag =0;
		for(int i=0;i<h.length()-1;i++) {
			if(h.charAt(i)==h.charAt(i+1)) {
				flag =1;
				break;
			}
		}
		if(flag==0) {
			System.out.println("Good");
		}
		else {
			System.out.println("Bad");
		}

	}

} Main


import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		String h = sc.next();
		int flag =0;
		for(int i=0;i<h.length()-1;i++) {
			if(h.charAt(i)==h.charAt(i+1)) {
				flag =1;
				break;
			}
		}
		if(flag==0) {
			System.out.println("Good");
		}
		else {
			System.out.println("Bad");
		}

	}

}
