import java.util.Scanner;
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String str = sc.next();
    boolean bl = false;
    for(int i = 0; i<3 ; i++){
      bl |= (str.charAt(i) == str.charAt(i+1));
    }
    if(bl){
      System.out.println("Bad");
    }else{
      System.out.println("Good");
    }
  }
} import java.util.Scanner; Scanner java.util class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String str = sc.next();
    boolean bl = false;
    for(int i = 0; i<3 ; i++){
      bl |= (str.charAt(i) == str.charAt(i+1));
    }
    if(bl){
      System.out.println("Bad");
    }else{
      System.out.println("Good");
    }
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String str = sc.next();
    boolean bl = false;
    for(int i = 0; i<3 ; i++){
      bl |= (str.charAt(i) == str.charAt(i+1));
    }
    if(bl){
      System.out.println("Bad");
    }else{
      System.out.println("Good");
    }
  } main {
    Scanner sc = new Scanner(System.in);
    String str = sc.next();
    boolean bl = false;
    for(int i = 0; i<3 ; i++){
      bl |= (str.charAt(i) == str.charAt(i+1));
    }
    if(bl){
      System.out.println("Bad");
    }else{
      System.out.println("Good");
    }
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String str = sc.next(); str sc.next() sc.next sc boolean bl = false; bl false for(int i = 0; i<3 ; i++){
      bl |= (str.charAt(i) == str.charAt(i+1));
    } int i = 0; int i = 0; i 0 i<3 i 3 i++ i++ i {
      bl |= (str.charAt(i) == str.charAt(i+1));
    } {
      bl |= (str.charAt(i) == str.charAt(i+1));
    } bl |= (str.charAt(i) == str.charAt(i+1)) bl (str.charAt(i) == str.charAt(i+1)) str.charAt(i) str.charAt str i str.charAt(i+1) str.charAt str i+1 i 1 if(bl){
      System.out.println("Bad");
    }else{
      System.out.println("Good");
    } bl {
      System.out.println("Bad");
    } System.out.println("Bad") System.out.println System.out System System.out "Bad" {
      System.out.println("Good");
    } System.out.println("Good") System.out.println System.out System System.out "Good" String[] args args
import java.util.Scanner;
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String str = sc.next();
    boolean bl = false;
    for(int i = 0; i<3 ; i++){
      bl |= (str.charAt(i) == str.charAt(i+1));
    }
    if(bl){
      System.out.println("Bad");
    }else{
      System.out.println("Good");
    }
  }
}