import java.util.Scanner;
import java.util.Arrays;

public class Main{
  static void judge(String a, String b){
    if(a.equals(b)){
      System.out.println("Bad");
      System.exit(0);
    }
  }


  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int count = 0;


    String[] s = sc.next().split("");
    //System.out.println(StringTolist(s));
    for(int i=0; i<s.length-1;i++){
      judge(s[i],s[i+1]);
    }

     System.out.println("Good");
   

  }
} import java.util.Scanner; Scanner java.util import java.util.Arrays; Arrays java.util public class Main{
  static void judge(String a, String b){
    if(a.equals(b)){
      System.out.println("Bad");
      System.exit(0);
    }
  }


  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int count = 0;


    String[] s = sc.next().split("");
    //System.out.println(StringTolist(s));
    for(int i=0; i<s.length-1;i++){
      judge(s[i],s[i+1]);
    }

     System.out.println("Good");
   

  }
} Main static void judge(String a, String b){
    if(a.equals(b)){
      System.out.println("Bad");
      System.exit(0);
    }
  } judge {
    if(a.equals(b)){
      System.out.println("Bad");
      System.exit(0);
    }
  } if(a.equals(b)){
      System.out.println("Bad");
      System.exit(0);
    } a.equals(b) a.equals a b {
      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 String a a String b b public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int count = 0;


    String[] s = sc.next().split("");
    //System.out.println(StringTolist(s));
    for(int i=0; i<s.length-1;i++){
      judge(s[i],s[i+1]);
    }

     System.out.println("Good");
   

  } main {
    Scanner sc = new Scanner(System.in);
    int count = 0;


    String[] s = sc.next().split("");
    //System.out.println(StringTolist(s));
    for(int i=0; i<s.length-1;i++){
      judge(s[i],s[i+1]);
    }

     System.out.println("Good");
   

  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int count = 0; count 0 String[] s = sc.next().split(""); s sc.next().split("") sc.next().split sc.next() sc.next sc "" for(int i=0; i<s.length-1;i++){
      judge(s[i],s[i+1]);
    } 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 {
      judge(s[i],s[i+1]);
    } {
      judge(s[i],s[i+1]);
    } judge(s[i],s[i+1]) judge s[i] s i s[i+1] s i+1 i 1 System.out.println("Good") System.out.println System.out System System.out "Good" String[] args args public class Main{
  static void judge(String a, String b){
    if(a.equals(b)){
      System.out.println("Bad");
      System.exit(0);
    }
  }


  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int count = 0;


    String[] s = sc.next().split("");
    //System.out.println(StringTolist(s));
    for(int i=0; i<s.length-1;i++){
      judge(s[i],s[i+1]);
    }

     System.out.println("Good");
   

  }
} public class Main{
  static void judge(String a, String b){
    if(a.equals(b)){
      System.out.println("Bad");
      System.exit(0);
    }
  }


  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int count = 0;


    String[] s = sc.next().split("");
    //System.out.println(StringTolist(s));
    for(int i=0; i<s.length-1;i++){
      judge(s[i],s[i+1]);
    }

     System.out.println("Good");
   

  }
} Main
import java.util.Scanner;
import java.util.Arrays;

public class Main{
  static void judge(String a, String b){
    if(a.equals(b)){
      System.out.println("Bad");
      System.exit(0);
    }
  }


  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int count = 0;


    String[] s = sc.next().split("");
    //System.out.println(StringTolist(s));
    for(int i=0; i<s.length-1;i++){
      judge(s[i],s[i+1]);
    }

     System.out.println("Good");
   

  }
}