import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    String s1[] = s.split("");
    String ans[] = {"Bad", "Good"};
    int a = 1;
    for (int i = 1; i < 4; i++){
      if (s1[i].equals(s1[i-1])) a *= 0;
    }
    System.out.println(ans[a]);
  }
} import java.util.*; util.* java public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    String s1[] = s.split("");
    String ans[] = {"Bad", "Good"};
    int a = 1;
    for (int i = 1; i < 4; i++){
      if (s1[i].equals(s1[i-1])) a *= 0;
    }
    System.out.println(ans[a]);
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    String s1[] = s.split("");
    String ans[] = {"Bad", "Good"};
    int a = 1;
    for (int i = 1; i < 4; i++){
      if (s1[i].equals(s1[i-1])) a *= 0;
    }
    System.out.println(ans[a]);
  } main {
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    String s1[] = s.split("");
    String ans[] = {"Bad", "Good"};
    int a = 1;
    for (int i = 1; i < 4; i++){
      if (s1[i].equals(s1[i-1])) a *= 0;
    }
    System.out.println(ans[a]);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc String s1[] = s.split(""); s1 s.split("") s.split s "" String ans[] = {"Bad", "Good"}; ans {"Bad", "Good"} "Bad" "Good" int a = 1; a 1 for (int i = 1; i < 4; i++){
      if (s1[i].equals(s1[i-1])) a *= 0;
    } int i = 1; int i = 1; i 1 i < 4 i 4 i++ i++ i {
      if (s1[i].equals(s1[i-1])) a *= 0;
    } {
      if (s1[i].equals(s1[i-1])) a *= 0;
    } if (s1[i].equals(s1[i-1])) a *= 0; s1[i].equals(s1[i-1]) s1[i].equals s1[i] s1 i s1[i-1] s1 i-1 i 1 a *= 0 a 0 System.out.println(ans[a]) System.out.println System.out System System.out ans[a] ans a String[] args args public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    String s1[] = s.split("");
    String ans[] = {"Bad", "Good"};
    int a = 1;
    for (int i = 1; i < 4; i++){
      if (s1[i].equals(s1[i-1])) a *= 0;
    }
    System.out.println(ans[a]);
  }
} public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    String s1[] = s.split("");
    String ans[] = {"Bad", "Good"};
    int a = 1;
    for (int i = 1; i < 4; i++){
      if (s1[i].equals(s1[i-1])) a *= 0;
    }
    System.out.println(ans[a]);
  }
} Main
import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    String s1[] = s.split("");
    String ans[] = {"Bad", "Good"};
    int a = 1;
    for (int i = 1; i < 4; i++){
      if (s1[i].equals(s1[i-1])) a *= 0;
    }
    System.out.println(ans[a]);
  }
}
