import java.util.Scanner;

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

public class Main{
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    char[] s = sc.next().toCharArray();
    boolean ans = true;
    for(int i = 0;i < 3;i++){
      if(s[i] == s[i+1])  ans = false;
    }
    if(ans){
      System.out.println("Good");
    }else{
      System.out.println("Bad");
    }
  }
}
