import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    String s = scan.nextLine();
    char a = s.charAt(0);
    for(int i = 1; i < 4; i++) {
      if (a == (s.charAt(i))) {
        System.out.println("Bad");
        return;
      }
      a = s.charAt(i);
    }
    System.out.println("Good");
    return;
  }
}
   import java.util.*; util.* java public class Main {
  public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    String s = scan.nextLine();
    char a = s.charAt(0);
    for(int i = 1; i < 4; i++) {
      if (a == (s.charAt(i))) {
        System.out.println("Bad");
        return;
      }
      a = s.charAt(i);
    }
    System.out.println("Good");
    return;
  }
} Main public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    String s = scan.nextLine();
    char a = s.charAt(0);
    for(int i = 1; i < 4; i++) {
      if (a == (s.charAt(i))) {
        System.out.println("Bad");
        return;
      }
      a = s.charAt(i);
    }
    System.out.println("Good");
    return;
  } main {
    Scanner scan = new Scanner(System.in);
    String s = scan.nextLine();
    char a = s.charAt(0);
    for(int i = 1; i < 4; i++) {
      if (a == (s.charAt(i))) {
        System.out.println("Bad");
        return;
      }
      a = s.charAt(i);
    }
    System.out.println("Good");
    return;
  } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String s = scan.nextLine(); s scan.nextLine() scan.nextLine scan char a = s.charAt(0); a s.charAt(0) s.charAt s 0 for(int i = 1; i < 4; i++) {
      if (a == (s.charAt(i))) {
        System.out.println("Bad");
        return;
      }
      a = s.charAt(i);
    } int i = 1; int i = 1; i 1 i < 4 i 4 i++ i++ i {
      if (a == (s.charAt(i))) {
        System.out.println("Bad");
        return;
      }
      a = s.charAt(i);
    } {
      if (a == (s.charAt(i))) {
        System.out.println("Bad");
        return;
      }
      a = s.charAt(i);
    } if (a == (s.charAt(i))) {
        System.out.println("Bad");
        return;
      } a == (s.charAt(i)) a (s.charAt(i)) s.charAt s i {
        System.out.println("Bad");
        return;
      } System.out.println("Bad") System.out.println System.out System System.out "Bad" return; a = s.charAt(i) a s.charAt(i) s.charAt s i System.out.println("Good") System.out.println System.out System System.out "Good" return; String[] args args public class Main {
  public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    String s = scan.nextLine();
    char a = s.charAt(0);
    for(int i = 1; i < 4; i++) {
      if (a == (s.charAt(i))) {
        System.out.println("Bad");
        return;
      }
      a = s.charAt(i);
    }
    System.out.println("Good");
    return;
  }
} public class Main {
  public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    String s = scan.nextLine();
    char a = s.charAt(0);
    for(int i = 1; i < 4; i++) {
      if (a == (s.charAt(i))) {
        System.out.println("Bad");
        return;
      }
      a = s.charAt(i);
    }
    System.out.println("Good");
    return;
  }
} Main
import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    String s = scan.nextLine();
    char a = s.charAt(0);
    for(int i = 1; i < 4; i++) {
      if (a == (s.charAt(i))) {
        System.out.println("Bad");
        return;
      }
      a = s.charAt(i);
    }
    System.out.println("Good");
    return;
  }
}
  
