import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		 Scanner scan = new Scanner(System.in);
		 
		 String str = scan.nextLine();
		 
		 int  flag = 0;
		 
		 for (int i = 1; i < 4; i++ ) {
			if (str.charAt(i) == str.charAt(i-1)) {
				flag = 1;
			}
		 }
		 
		 if (flag == 1) {
			 System.out.println("Bad");
		 } else {
			 System.out.println("Good");
		 }
		 
		 scan.close();
		 

	}

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

	public static void main(String[] args) {
		 Scanner scan = new Scanner(System.in);
		 
		 String str = scan.nextLine();
		 
		 int  flag = 0;
		 
		 for (int i = 1; i < 4; i++ ) {
			if (str.charAt(i) == str.charAt(i-1)) {
				flag = 1;
			}
		 }
		 
		 if (flag == 1) {
			 System.out.println("Bad");
		 } else {
			 System.out.println("Good");
		 }
		 
		 scan.close();
		 

	}

} Main public static void main(String[] args) {
		 Scanner scan = new Scanner(System.in);
		 
		 String str = scan.nextLine();
		 
		 int  flag = 0;
		 
		 for (int i = 1; i < 4; i++ ) {
			if (str.charAt(i) == str.charAt(i-1)) {
				flag = 1;
			}
		 }
		 
		 if (flag == 1) {
			 System.out.println("Bad");
		 } else {
			 System.out.println("Good");
		 }
		 
		 scan.close();
		 

	} main {
		 Scanner scan = new Scanner(System.in);
		 
		 String str = scan.nextLine();
		 
		 int  flag = 0;
		 
		 for (int i = 1; i < 4; i++ ) {
			if (str.charAt(i) == str.charAt(i-1)) {
				flag = 1;
			}
		 }
		 
		 if (flag == 1) {
			 System.out.println("Bad");
		 } else {
			 System.out.println("Good");
		 }
		 
		 scan.close();
		 

	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String str = scan.nextLine(); str scan.nextLine() scan.nextLine scan int  flag = 0; flag 0 for (int i = 1; i < 4; i++ ) {
			if (str.charAt(i) == str.charAt(i-1)) {
				flag = 1;
			}
		 } int i = 1; int i = 1; i 1 i < 4 i 4 i++ i++ i {
			if (str.charAt(i) == str.charAt(i-1)) {
				flag = 1;
			}
		 } {
			if (str.charAt(i) == str.charAt(i-1)) {
				flag = 1;
			}
		 } if (str.charAt(i) == str.charAt(i-1)) {
				flag = 1;
			} str.charAt(i) == str.charAt(i-1) str.charAt(i) str.charAt str i str.charAt(i-1) str.charAt str i-1 i 1 {
				flag = 1;
			} flag = 1 flag 1 if (flag == 1) {
			 System.out.println("Bad");
		 } else {
			 System.out.println("Good");
		 } flag == 1 flag 1 {
			 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" scan.close() scan.close scan String[] args args public class Main {

	public static void main(String[] args) {
		 Scanner scan = new Scanner(System.in);
		 
		 String str = scan.nextLine();
		 
		 int  flag = 0;
		 
		 for (int i = 1; i < 4; i++ ) {
			if (str.charAt(i) == str.charAt(i-1)) {
				flag = 1;
			}
		 }
		 
		 if (flag == 1) {
			 System.out.println("Bad");
		 } else {
			 System.out.println("Good");
		 }
		 
		 scan.close();
		 

	}

} public class Main {

	public static void main(String[] args) {
		 Scanner scan = new Scanner(System.in);
		 
		 String str = scan.nextLine();
		 
		 int  flag = 0;
		 
		 for (int i = 1; i < 4; i++ ) {
			if (str.charAt(i) == str.charAt(i-1)) {
				flag = 1;
			}
		 }
		 
		 if (flag == 1) {
			 System.out.println("Bad");
		 } else {
			 System.out.println("Good");
		 }
		 
		 scan.close();
		 

	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		 Scanner scan = new Scanner(System.in);
		 
		 String str = scan.nextLine();
		 
		 int  flag = 0;
		 
		 for (int i = 1; i < 4; i++ ) {
			if (str.charAt(i) == str.charAt(i-1)) {
				flag = 1;
			}
		 }
		 
		 if (flag == 1) {
			 System.out.println("Bad");
		 } else {
			 System.out.println("Good");
		 }
		 
		 scan.close();
		 

	}

}
