import java.util.Scanner;
 
public class Main{
	public static void main(String[] args){
    	
      Scanner scan = new Scanner(System.in);
      String a = scan.next();
      if (a.charAt(0) == a.charAt(1) || a.charAt(1) == a.charAt(2) || a.charAt(2) == a.charAt(3)){
        System.out.print("Bad");
      }else{
        System.out.print("Good");
      }
    }
} import java.util.Scanner; Scanner java.util public class Main{
	public static void main(String[] args){
    	
      Scanner scan = new Scanner(System.in);
      String a = scan.next();
      if (a.charAt(0) == a.charAt(1) || a.charAt(1) == a.charAt(2) || a.charAt(2) == a.charAt(3)){
        System.out.print("Bad");
      }else{
        System.out.print("Good");
      }
    }
} Main public static void main(String[] args){
    	
      Scanner scan = new Scanner(System.in);
      String a = scan.next();
      if (a.charAt(0) == a.charAt(1) || a.charAt(1) == a.charAt(2) || a.charAt(2) == a.charAt(3)){
        System.out.print("Bad");
      }else{
        System.out.print("Good");
      }
    } main {
    	
      Scanner scan = new Scanner(System.in);
      String a = scan.next();
      if (a.charAt(0) == a.charAt(1) || a.charAt(1) == a.charAt(2) || a.charAt(2) == a.charAt(3)){
        System.out.print("Bad");
      }else{
        System.out.print("Good");
      }
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String a = scan.next(); a scan.next() scan.next scan if (a.charAt(0) == a.charAt(1) || a.charAt(1) == a.charAt(2) || a.charAt(2) == a.charAt(3)){
        System.out.print("Bad");
      }else{
        System.out.print("Good");
      } a.charAt(0) == a.charAt(1) || a.charAt(1) == a.charAt(2) || a.charAt(2) == a.charAt(3) a.charAt(0) == a.charAt(1) || a.charAt(1) == a.charAt(2) || a.charAt(2) == a.charAt(3) a.charAt(0) == a.charAt(1) a.charAt(0) a.charAt a 0 a.charAt(1) a.charAt a 1 a.charAt(1) == a.charAt(2) a.charAt(1) a.charAt a 1 a.charAt(2) a.charAt a 2 a.charAt(2) == a.charAt(3) a.charAt(2) a.charAt a 2 a.charAt(3) a.charAt a 3 {
        System.out.print("Bad");
      } System.out.print("Bad") System.out.print System.out System System.out "Bad" {
        System.out.print("Good");
      } System.out.print("Good") System.out.print System.out System System.out "Good" String[] args args public class Main{
	public static void main(String[] args){
    	
      Scanner scan = new Scanner(System.in);
      String a = scan.next();
      if (a.charAt(0) == a.charAt(1) || a.charAt(1) == a.charAt(2) || a.charAt(2) == a.charAt(3)){
        System.out.print("Bad");
      }else{
        System.out.print("Good");
      }
    }
} public class Main{
	public static void main(String[] args){
    	
      Scanner scan = new Scanner(System.in);
      String a = scan.next();
      if (a.charAt(0) == a.charAt(1) || a.charAt(1) == a.charAt(2) || a.charAt(2) == a.charAt(3)){
        System.out.print("Bad");
      }else{
        System.out.print("Good");
      }
    }
} Main
import java.util.Scanner;
 
public class Main{
	public static void main(String[] args){
    	
      Scanner scan = new Scanner(System.in);
      String a = scan.next();
      if (a.charAt(0) == a.charAt(1) || a.charAt(1) == a.charAt(2) || a.charAt(2) == a.charAt(3)){
        System.out.print("Bad");
      }else{
        System.out.print("Good");
      }
    }
}