import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in) ;
    String S = sc.next();
    int check =0;
    for (int i=0; i<3; i++) {
      if (S.charAt(i) == S.charAt(i+1)) {
        check++;
      }
    }
    if (check != 0) {
      System.out.println("Bad");
    } else {
      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();
    int check =0;
    for (int i=0; i<3; i++) {
      if (S.charAt(i) == S.charAt(i+1)) {
        check++;
      }
    }
    if (check != 0) {
      System.out.println("Bad");
    } else {
      System.out.println("Good");
    }
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in) ;
    String S = sc.next();
    int check =0;
    for (int i=0; i<3; i++) {
      if (S.charAt(i) == S.charAt(i+1)) {
        check++;
      }
    }
    if (check != 0) {
      System.out.println("Bad");
    } else {
      System.out.println("Good");
    }
  } main {
    Scanner sc = new Scanner(System.in) ;
    String S = sc.next();
    int check =0;
    for (int i=0; i<3; i++) {
      if (S.charAt(i) == S.charAt(i+1)) {
        check++;
      }
    }
    if (check != 0) {
      System.out.println("Bad");
    } else {
      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 int check =0; check 0 for (int i=0; i<3; i++) {
      if (S.charAt(i) == S.charAt(i+1)) {
        check++;
      }
    } int i=0; int i=0; i 0 i<3 i 3 i++ i++ i {
      if (S.charAt(i) == S.charAt(i+1)) {
        check++;
      }
    } {
      if (S.charAt(i) == S.charAt(i+1)) {
        check++;
      }
    } if (S.charAt(i) == S.charAt(i+1)) {
        check++;
      } S.charAt(i) == S.charAt(i+1) S.charAt(i) S.charAt S i S.charAt(i+1) S.charAt S i+1 i 1 {
        check++;
      } check++ check if (check != 0) {
      System.out.println("Bad");
    } else {
      System.out.println("Good");
    } check != 0 check 0 {
      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 public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in) ;
    String S = sc.next();
    int check =0;
    for (int i=0; i<3; i++) {
      if (S.charAt(i) == S.charAt(i+1)) {
        check++;
      }
    }
    if (check != 0) {
      System.out.println("Bad");
    } else {
      System.out.println("Good");
    }
  }
} public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in) ;
    String S = sc.next();
    int check =0;
    for (int i=0; i<3; i++) {
      if (S.charAt(i) == S.charAt(i+1)) {
        check++;
      }
    }
    if (check != 0) {
      System.out.println("Bad");
    } else {
      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();
    int check =0;
    for (int i=0; i<3; i++) {
      if (S.charAt(i) == S.charAt(i+1)) {
        check++;
      }
    }
    if (check != 0) {
      System.out.println("Bad");
    } else {
      System.out.println("Good");
    }
  }
}