import java.util.*;
public class Main {
	public static void main(String[] args){
	  Scanner sc = new Scanner(System.in);
	  // 文字列の入力
	  String s = sc.next();
      
      char[] c = s.toCharArray();

      for(int i = 0; i < s.length()-1; i++) {
        if(c[i] == c[i+1]) {
          System.out.println("Bad");
          return;
        }
      }
      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();
      
      char[] c = s.toCharArray();

      for(int i = 0; i < s.length()-1; i++) {
        if(c[i] == c[i+1]) {
          System.out.println("Bad");
          return;
        }
      }
      System.out.println("Good");
      
	}
} Main public static void main(String[] args){
	  Scanner sc = new Scanner(System.in);
	  // 文字列の入力
	  String s = sc.next();
      
      char[] c = s.toCharArray();

      for(int i = 0; i < s.length()-1; i++) {
        if(c[i] == c[i+1]) {
          System.out.println("Bad");
          return;
        }
      }
      System.out.println("Good");
      
	} main {
	  Scanner sc = new Scanner(System.in);
	  // 文字列の入力
	  String s = sc.next();
      
      char[] c = s.toCharArray();

      for(int i = 0; i < s.length()-1; i++) {
        if(c[i] == c[i+1]) {
          System.out.println("Bad");
          return;
        }
      }
      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 char[] c = s.toCharArray(); c s.toCharArray() s.toCharArray s for(int i = 0; i < s.length()-1; i++) {
        if(c[i] == c[i+1]) {
          System.out.println("Bad");
          return;
        }
      } int i = 0; int i = 0; i 0 i < s.length()-1 i s.length()-1 s.length() s.length s 1 i++ i++ i {
        if(c[i] == c[i+1]) {
          System.out.println("Bad");
          return;
        }
      } {
        if(c[i] == c[i+1]) {
          System.out.println("Bad");
          return;
        }
      } if(c[i] == c[i+1]) {
          System.out.println("Bad");
          return;
        } c[i] == c[i+1] c[i] c i c[i+1] c i+1 i 1 {
          System.out.println("Bad");
          return;
        } System.out.println("Bad") System.out.println System.out System System.out "Bad" return; 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();
      
      char[] c = s.toCharArray();

      for(int i = 0; i < s.length()-1; i++) {
        if(c[i] == c[i+1]) {
          System.out.println("Bad");
          return;
        }
      }
      System.out.println("Good");
      
	}
} public class Main {
	public static void main(String[] args){
	  Scanner sc = new Scanner(System.in);
	  // 文字列の入力
	  String s = sc.next();
      
      char[] c = s.toCharArray();

      for(int i = 0; i < s.length()-1; i++) {
        if(c[i] == c[i+1]) {
          System.out.println("Bad");
          return;
        }
      }
      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();
      
      char[] c = s.toCharArray();

      for(int i = 0; i < s.length()-1; i++) {
        if(c[i] == c[i+1]) {
          System.out.println("Bad");
          return;
        }
      }
      System.out.println("Good");
      
	}
}