
import java.util.*;

class Main {
	  static int mod=1_000_000_007;
  public static void main(String[] args) {
	  Scanner sc = new Scanner(System.in);
      long cnt =0;
      String N = sc.next();
      
      for(int i=1;i<N.length();i++) {
    	  if(N.substring(i-1, i).equals(N.substring(i,i+1))) {
    		  cnt = 1;
    	  }
      }
      
      if(cnt==1) {
    	  System.out.println("Bad");
      } else {
    	  System.out.println("Good");    	  
      }
  }
 
} import java.util.*; util.* java class Main {
	  static int mod=1_000_000_007;
  public static void main(String[] args) {
	  Scanner sc = new Scanner(System.in);
      long cnt =0;
      String N = sc.next();
      
      for(int i=1;i<N.length();i++) {
    	  if(N.substring(i-1, i).equals(N.substring(i,i+1))) {
    		  cnt = 1;
    	  }
      }
      
      if(cnt==1) {
    	  System.out.println("Bad");
      } else {
    	  System.out.println("Good");    	  
      }
  }
 
} Main static int mod=1_000_000_007; mod 1_000_000_007 public static void main(String[] args) {
	  Scanner sc = new Scanner(System.in);
      long cnt =0;
      String N = sc.next();
      
      for(int i=1;i<N.length();i++) {
    	  if(N.substring(i-1, i).equals(N.substring(i,i+1))) {
    		  cnt = 1;
    	  }
      }
      
      if(cnt==1) {
    	  System.out.println("Bad");
      } else {
    	  System.out.println("Good");    	  
      }
  } main {
	  Scanner sc = new Scanner(System.in);
      long cnt =0;
      String N = sc.next();
      
      for(int i=1;i<N.length();i++) {
    	  if(N.substring(i-1, i).equals(N.substring(i,i+1))) {
    		  cnt = 1;
    	  }
      }
      
      if(cnt==1) {
    	  System.out.println("Bad");
      } else {
    	  System.out.println("Good");    	  
      }
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) long cnt =0; cnt 0 String N = sc.next(); N sc.next() sc.next sc for(int i=1;i<N.length();i++) {
    	  if(N.substring(i-1, i).equals(N.substring(i,i+1))) {
    		  cnt = 1;
    	  }
      } int i=1; int i=1; i 1 i<N.length() i N.length() N.length N i++ i++ i {
    	  if(N.substring(i-1, i).equals(N.substring(i,i+1))) {
    		  cnt = 1;
    	  }
      } {
    	  if(N.substring(i-1, i).equals(N.substring(i,i+1))) {
    		  cnt = 1;
    	  }
      } if(N.substring(i-1, i).equals(N.substring(i,i+1))) {
    		  cnt = 1;
    	  } N.substring(i-1, i).equals(N.substring(i,i+1)) N.substring(i-1, i).equals N.substring(i-1, i) N.substring N i-1 i 1 i N.substring(i,i+1) N.substring N i i+1 i 1 {
    		  cnt = 1;
    	  } cnt = 1 cnt 1 if(cnt==1) {
    	  System.out.println("Bad");
      } else {
    	  System.out.println("Good");    	  
      } cnt==1 cnt 1 {
    	  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

import java.util.*;

class Main {
	  static int mod=1_000_000_007;
  public static void main(String[] args) {
	  Scanner sc = new Scanner(System.in);
      long cnt =0;
      String N = sc.next();
      
      for(int i=1;i<N.length();i++) {
    	  if(N.substring(i-1, i).equals(N.substring(i,i+1))) {
    		  cnt = 1;
    	  }
      }
      
      if(cnt==1) {
    	  System.out.println("Bad");
      } else {
    	  System.out.println("Good");    	  
      }
  }
 
}