import java.util.Scanner;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    char[] chars = sc.next().toCharArray();
    String status = "Good";
    for(int i=1; i<chars.length; i++){
      if(chars[i-1]==chars[i]){
        status = "Bad";
      }
    }
    System.out.println(status);
  }
} import java.util.Scanner; Scanner java.util public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    char[] chars = sc.next().toCharArray();
    String status = "Good";
    for(int i=1; i<chars.length; i++){
      if(chars[i-1]==chars[i]){
        status = "Bad";
      }
    }
    System.out.println(status);
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    char[] chars = sc.next().toCharArray();
    String status = "Good";
    for(int i=1; i<chars.length; i++){
      if(chars[i-1]==chars[i]){
        status = "Bad";
      }
    }
    System.out.println(status);
  } main {
    Scanner sc = new Scanner(System.in);
    char[] chars = sc.next().toCharArray();
    String status = "Good";
    for(int i=1; i<chars.length; i++){
      if(chars[i-1]==chars[i]){
        status = "Bad";
      }
    }
    System.out.println(status);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) char[] chars = sc.next().toCharArray(); chars sc.next().toCharArray() sc.next().toCharArray sc.next() sc.next sc String status = "Good"; status "Good" for(int i=1; i<chars.length; i++){
      if(chars[i-1]==chars[i]){
        status = "Bad";
      }
    } int i=1; int i=1; i 1 i<chars.length i chars.length chars chars.length i++ i++ i {
      if(chars[i-1]==chars[i]){
        status = "Bad";
      }
    } {
      if(chars[i-1]==chars[i]){
        status = "Bad";
      }
    } if(chars[i-1]==chars[i]){
        status = "Bad";
      } chars[i-1]==chars[i] chars[i-1] chars i-1 i 1 chars[i] chars i {
        status = "Bad";
      } status = "Bad" status "Bad" System.out.println(status) System.out.println System.out System System.out status String[] args args public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    char[] chars = sc.next().toCharArray();
    String status = "Good";
    for(int i=1; i<chars.length; i++){
      if(chars[i-1]==chars[i]){
        status = "Bad";
      }
    }
    System.out.println(status);
  }
} public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    char[] chars = sc.next().toCharArray();
    String status = "Good";
    for(int i=1; i<chars.length; i++){
      if(chars[i-1]==chars[i]){
        status = "Bad";
      }
    }
    System.out.println(status);
  }
} Main
import java.util.Scanner;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    char[] chars = sc.next().toCharArray();
    String status = "Good";
    for(int i=1; i<chars.length; i++){
      if(chars[i-1]==chars[i]){
        status = "Bad";
      }
    }
    System.out.println(status);
  }
}