import java.util.*;

class Main {
  //パスワード入力
  static Scanner sc = new Scanner(System.in);
  static String pw = sc.next();
  
  //判定
  public static String check(String pw) {
      for (int i=0; i < pw.length()-1; i++) {
      if (pw.substring(i, i+1).equals(pw.substring(i+1, i+2))) {
        return "Bad";
      }
    }
    return "Good";
  }
  
  //結果出力
  public static void main(String[] args) {
    String result = check(pw);
    System.out.println(result);
 }
 
} import java.util.*; util.* java class Main {
  //パスワード入力
  static Scanner sc = new Scanner(System.in);
  static String pw = sc.next();
  
  //判定
  public static String check(String pw) {
      for (int i=0; i < pw.length()-1; i++) {
      if (pw.substring(i, i+1).equals(pw.substring(i+1, i+2))) {
        return "Bad";
      }
    }
    return "Good";
  }
  
  //結果出力
  public static void main(String[] args) {
    String result = check(pw);
    System.out.println(result);
 }
 
} Main //パスワード入力
  static Scanner sc = new Scanner(System.in); sc new Scanner(System.in) static String pw = sc.next(); pw sc.next() sc.next sc //判定
  public static String check(String pw) {
      for (int i=0; i < pw.length()-1; i++) {
      if (pw.substring(i, i+1).equals(pw.substring(i+1, i+2))) {
        return "Bad";
      }
    }
    return "Good";
  } check {
      for (int i=0; i < pw.length()-1; i++) {
      if (pw.substring(i, i+1).equals(pw.substring(i+1, i+2))) {
        return "Bad";
      }
    }
    return "Good";
  } for (int i=0; i < pw.length()-1; i++) {
      if (pw.substring(i, i+1).equals(pw.substring(i+1, i+2))) {
        return "Bad";
      }
    } int i=0; int i=0; i 0 i < pw.length()-1 i pw.length()-1 pw.length() pw.length pw 1 i++ i++ i {
      if (pw.substring(i, i+1).equals(pw.substring(i+1, i+2))) {
        return "Bad";
      }
    } {
      if (pw.substring(i, i+1).equals(pw.substring(i+1, i+2))) {
        return "Bad";
      }
    } if (pw.substring(i, i+1).equals(pw.substring(i+1, i+2))) {
        return "Bad";
      } pw.substring(i, i+1).equals(pw.substring(i+1, i+2)) pw.substring(i, i+1).equals pw.substring(i, i+1) pw.substring pw i i+1 i 1 pw.substring(i+1, i+2) pw.substring pw i+1 i 1 i+2 i 2 {
        return "Bad";
      } return "Bad"; "Bad" return "Good"; "Good" String pw pw //結果出力
  public static void main(String[] args) {
    String result = check(pw);
    System.out.println(result);
 } main {
    String result = check(pw);
    System.out.println(result);
 } String result = check(pw); result check(pw) check pw System.out.println(result) System.out.println System.out System System.out result String[] args args
import java.util.*;

class Main {
  //パスワード入力
  static Scanner sc = new Scanner(System.in);
  static String pw = sc.next();
  
  //判定
  public static String check(String pw) {
      for (int i=0; i < pw.length()-1; i++) {
      if (pw.substring(i, i+1).equals(pw.substring(i+1, i+2))) {
        return "Bad";
      }
    }
    return "Good";
  }
  
  //結果出力
  public static void main(String[] args) {
    String result = check(pw);
    System.out.println(result);
 }
 
}