import java.util.*;
class Main{
  public static void main(String[] args){
    Scanner scan=new Scanner(System.in);
    String[] s=scan.nextLine().split("");
    for(int i=0;i<s.length-1;i++){
      if(s[i].equals(s[i+1])){
        System.out.println("Bad");
        System.exit(0);
      }
    }
    System.out.println("Good");
  }
} import java.util.*; util.* java class Main{
  public static void main(String[] args){
    Scanner scan=new Scanner(System.in);
    String[] s=scan.nextLine().split("");
    for(int i=0;i<s.length-1;i++){
      if(s[i].equals(s[i+1])){
        System.out.println("Bad");
        System.exit(0);
      }
    }
    System.out.println("Good");
  }
} Main public static void main(String[] args){
    Scanner scan=new Scanner(System.in);
    String[] s=scan.nextLine().split("");
    for(int i=0;i<s.length-1;i++){
      if(s[i].equals(s[i+1])){
        System.out.println("Bad");
        System.exit(0);
      }
    }
    System.out.println("Good");
  } main {
    Scanner scan=new Scanner(System.in);
    String[] s=scan.nextLine().split("");
    for(int i=0;i<s.length-1;i++){
      if(s[i].equals(s[i+1])){
        System.out.println("Bad");
        System.exit(0);
      }
    }
    System.out.println("Good");
  } Scanner scan=new Scanner(System.in); scan new Scanner(System.in) String[] s=scan.nextLine().split(""); s scan.nextLine().split("") scan.nextLine().split scan.nextLine() scan.nextLine scan "" for(int i=0;i<s.length-1;i++){
      if(s[i].equals(s[i+1])){
        System.out.println("Bad");
        System.exit(0);
      }
    } int i=0; int i=0; i 0 i<s.length-1 i s.length-1 s.length s s.length 1 i++ i++ i {
      if(s[i].equals(s[i+1])){
        System.out.println("Bad");
        System.exit(0);
      }
    } {
      if(s[i].equals(s[i+1])){
        System.out.println("Bad");
        System.exit(0);
      }
    } if(s[i].equals(s[i+1])){
        System.out.println("Bad");
        System.exit(0);
      } s[i].equals(s[i+1]) s[i].equals s[i] s i s[i+1] s i+1 i 1 {
        System.out.println("Bad");
        System.exit(0);
      } System.out.println("Bad") System.out.println System.out System System.out "Bad" System.exit(0) System.exit System 0 System.out.println("Good") System.out.println System.out System System.out "Good" String[] args args
import java.util.*;
class Main{
  public static void main(String[] args){
    Scanner scan=new Scanner(System.in);
    String[] s=scan.nextLine().split("");
    for(int i=0;i<s.length-1;i++){
      if(s[i].equals(s[i+1])){
        System.out.println("Bad");
        System.exit(0);
      }
    }
    System.out.println("Good");
  }
}