import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);

    String s = sc.next();
    char[] c = s.toCharArray();
    String ans = "Good";
    
    for(int i = 1; i < 4; i++){
      if(c[i - 1] == c[i]){
        ans = "Bad";
        break;
      }
    }

    System.out.println(ans);
  }
} import java.util.*; util.* java public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);

    String s = sc.next();
    char[] c = s.toCharArray();
    String ans = "Good";
    
    for(int i = 1; i < 4; i++){
      if(c[i - 1] == c[i]){
        ans = "Bad";
        break;
      }
    }

    System.out.println(ans);
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);

    String s = sc.next();
    char[] c = s.toCharArray();
    String ans = "Good";
    
    for(int i = 1; i < 4; i++){
      if(c[i - 1] == c[i]){
        ans = "Bad";
        break;
      }
    }

    System.out.println(ans);
  } main {
    Scanner sc = new Scanner(System.in);

    String s = sc.next();
    char[] c = s.toCharArray();
    String ans = "Good";
    
    for(int i = 1; i < 4; i++){
      if(c[i - 1] == c[i]){
        ans = "Bad";
        break;
      }
    }

    System.out.println(ans);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc char[] c = s.toCharArray(); c s.toCharArray() s.toCharArray s String ans = "Good"; ans "Good" for(int i = 1; i < 4; i++){
      if(c[i - 1] == c[i]){
        ans = "Bad";
        break;
      }
    } int i = 1; int i = 1; i 1 i < 4 i 4 i++ i++ i {
      if(c[i - 1] == c[i]){
        ans = "Bad";
        break;
      }
    } {
      if(c[i - 1] == c[i]){
        ans = "Bad";
        break;
      }
    } if(c[i - 1] == c[i]){
        ans = "Bad";
        break;
      } c[i - 1] == c[i] c[i - 1] c i - 1 i 1 c[i] c i {
        ans = "Bad";
        break;
      } ans = "Bad" ans "Bad" break; System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);

    String s = sc.next();
    char[] c = s.toCharArray();
    String ans = "Good";
    
    for(int i = 1; i < 4; i++){
      if(c[i - 1] == c[i]){
        ans = "Bad";
        break;
      }
    }

    System.out.println(ans);
  }
} public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);

    String s = sc.next();
    char[] c = s.toCharArray();
    String ans = "Good";
    
    for(int i = 1; i < 4; i++){
      if(c[i - 1] == c[i]){
        ans = "Bad";
        break;
      }
    }

    System.out.println(ans);
  }
} Main
import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);

    String s = sc.next();
    char[] c = s.toCharArray();
    String ans = "Good";
    
    for(int i = 1; i < 4; i++){
      if(c[i - 1] == c[i]){
        ans = "Bad";
        break;
      }
    }

    System.out.println(ans);
  }
}
