import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc =new Scanner(System.in);
    String s =sc.next();
    String t[] =s.split("",0);
    for(int i=1;i<4;i++){
      if(t[i].equals(t[i-1])){System.out.println("Bad");System.exit(0);}}
    System.out.println("Good");
  }
} import java.util.*; util.* java public class Main{
  public static void main(String[] args){
    Scanner sc =new Scanner(System.in);
    String s =sc.next();
    String t[] =s.split("",0);
    for(int i=1;i<4;i++){
      if(t[i].equals(t[i-1])){System.out.println("Bad");System.exit(0);}}
    System.out.println("Good");
  }
} Main public static void main(String[] args){
    Scanner sc =new Scanner(System.in);
    String s =sc.next();
    String t[] =s.split("",0);
    for(int i=1;i<4;i++){
      if(t[i].equals(t[i-1])){System.out.println("Bad");System.exit(0);}}
    System.out.println("Good");
  } main {
    Scanner sc =new Scanner(System.in);
    String s =sc.next();
    String t[] =s.split("",0);
    for(int i=1;i<4;i++){
      if(t[i].equals(t[i-1])){System.out.println("Bad");System.exit(0);}}
    System.out.println("Good");
  } Scanner sc =new Scanner(System.in); sc new Scanner(System.in) String s =sc.next(); s sc.next() sc.next sc String t[] =s.split("",0); t s.split("",0) s.split s "" 0 for(int i=1;i<4;i++){
      if(t[i].equals(t[i-1])){System.out.println("Bad");System.exit(0);}} int i=1; int i=1; i 1 i<4 i 4 i++ i++ i {
      if(t[i].equals(t[i-1])){System.out.println("Bad");System.exit(0);}} {
      if(t[i].equals(t[i-1])){System.out.println("Bad");System.exit(0);}} if(t[i].equals(t[i-1])){System.out.println("Bad");System.exit(0);} t[i].equals(t[i-1]) t[i].equals t[i] t i t[i-1] t 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 public class Main{
  public static void main(String[] args){
    Scanner sc =new Scanner(System.in);
    String s =sc.next();
    String t[] =s.split("",0);
    for(int i=1;i<4;i++){
      if(t[i].equals(t[i-1])){System.out.println("Bad");System.exit(0);}}
    System.out.println("Good");
  }
} public class Main{
  public static void main(String[] args){
    Scanner sc =new Scanner(System.in);
    String s =sc.next();
    String t[] =s.split("",0);
    for(int i=1;i<4;i++){
      if(t[i].equals(t[i-1])){System.out.println("Bad");System.exit(0);}}
    System.out.println("Good");
  }
} Main
import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc =new Scanner(System.in);
    String s =sc.next();
    String t[] =s.split("",0);
    for(int i=1;i<4;i++){
      if(t[i].equals(t[i-1])){System.out.println("Bad");System.exit(0);}}
    System.out.println("Good");
  }
}