import java.util.Scanner;
class Main{
  public static void main(String[] args){
    Scanner s=new Scanner(System.in);
    String a=s.next();
    boolean cintinuity=false;
    for(int i=0;i<a.length()-1;i++)if(a.charAt(i)==a.charAt(i+1))cintinuity=true;
    if(cintinuity)System.out.println("Bad");
    else System.out.println("Good");
  }
} import java.util.Scanner; Scanner java.util class Main{
  public static void main(String[] args){
    Scanner s=new Scanner(System.in);
    String a=s.next();
    boolean cintinuity=false;
    for(int i=0;i<a.length()-1;i++)if(a.charAt(i)==a.charAt(i+1))cintinuity=true;
    if(cintinuity)System.out.println("Bad");
    else System.out.println("Good");
  }
} Main public static void main(String[] args){
    Scanner s=new Scanner(System.in);
    String a=s.next();
    boolean cintinuity=false;
    for(int i=0;i<a.length()-1;i++)if(a.charAt(i)==a.charAt(i+1))cintinuity=true;
    if(cintinuity)System.out.println("Bad");
    else System.out.println("Good");
  } main {
    Scanner s=new Scanner(System.in);
    String a=s.next();
    boolean cintinuity=false;
    for(int i=0;i<a.length()-1;i++)if(a.charAt(i)==a.charAt(i+1))cintinuity=true;
    if(cintinuity)System.out.println("Bad");
    else System.out.println("Good");
  } Scanner s=new Scanner(System.in); s new Scanner(System.in) String a=s.next(); a s.next() s.next s boolean cintinuity=false; cintinuity false for(int i=0;i<a.length()-1;i++)if(a.charAt(i)==a.charAt(i+1))cintinuity=true; int i=0; int i=0; i 0 i<a.length()-1 i a.length()-1 a.length() a.length a 1 i++ i++ i if(a.charAt(i)==a.charAt(i+1))cintinuity=true; if(a.charAt(i)==a.charAt(i+1))cintinuity=true; a.charAt(i)==a.charAt(i+1) a.charAt(i) a.charAt a i a.charAt(i+1) a.charAt a i+1 i 1 cintinuity=true cintinuity true if(cintinuity)System.out.println("Bad");
    else System.out.println("Good"); cintinuity System.out.println("Bad") System.out.println System.out System System.out "Bad" System.out.println("Good") System.out.println System.out System System.out "Good" String[] args args
import java.util.Scanner;
class Main{
  public static void main(String[] args){
    Scanner s=new Scanner(System.in);
    String a=s.next();
    boolean cintinuity=false;
    for(int i=0;i<a.length()-1;i++)if(a.charAt(i)==a.charAt(i+1))cintinuity=true;
    if(cintinuity)System.out.println("Bad");
    else System.out.println("Good");
  }
}