import java.util.*;
public class Main {
  
  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    char prev = 'x';
    for (int i = 0; i < S.length(); i++) {
      char c = S.charAt(i);
      if (prev == c) {
        System.out.println("Bad");
        return;
      }
      prev = c;
    }
    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();
    char prev = 'x';
    for (int i = 0; i < S.length(); i++) {
      char c = S.charAt(i);
      if (prev == c) {
        System.out.println("Bad");
        return;
      }
      prev = c;
    }
    System.out.println("Good");
  }  
} Main public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    char prev = 'x';
    for (int i = 0; i < S.length(); i++) {
      char c = S.charAt(i);
      if (prev == c) {
        System.out.println("Bad");
        return;
      }
      prev = c;
    }
    System.out.println("Good");
  } main {

    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    char prev = 'x';
    for (int i = 0; i < S.length(); i++) {
      char c = S.charAt(i);
      if (prev == c) {
        System.out.println("Bad");
        return;
      }
      prev = c;
    }
    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 char prev = 'x'; prev 'x' for (int i = 0; i < S.length(); i++) {
      char c = S.charAt(i);
      if (prev == c) {
        System.out.println("Bad");
        return;
      }
      prev = c;
    } int i = 0; int i = 0; i 0 i < S.length() i S.length() S.length S i++ i++ i {
      char c = S.charAt(i);
      if (prev == c) {
        System.out.println("Bad");
        return;
      }
      prev = c;
    } {
      char c = S.charAt(i);
      if (prev == c) {
        System.out.println("Bad");
        return;
      }
      prev = c;
    } char c = S.charAt(i); c S.charAt(i) S.charAt S i if (prev == c) {
        System.out.println("Bad");
        return;
      } prev == c prev c {
        System.out.println("Bad");
        return;
      } System.out.println("Bad") System.out.println System.out System System.out "Bad" return; prev = c prev c 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();
    char prev = 'x';
    for (int i = 0; i < S.length(); i++) {
      char c = S.charAt(i);
      if (prev == c) {
        System.out.println("Bad");
        return;
      }
      prev = c;
    }
    System.out.println("Good");
  }  
} public class Main {
  
  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    char prev = 'x';
    for (int i = 0; i < S.length(); i++) {
      char c = S.charAt(i);
      if (prev == c) {
        System.out.println("Bad");
        return;
      }
      prev = c;
    }
    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();
    char prev = 'x';
    for (int i = 0; i < S.length(); i++) {
      char c = S.charAt(i);
      if (prev == c) {
        System.out.println("Bad");
        return;
      }
      prev = c;
    }
    System.out.println("Good");
  }  
}
