
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
       Scanner sc = new Scanner(System.in);
      char[] s = sc.next().toCharArray();
      char ch = s[0];
      boolean flag = false;
      for(int i=1;i<4;i++){
        if(s[i]==ch){
          flag = true;
          break;
        }else{
          ch = s[i];
        }
      }
      if(flag){
        System.out.print("Bad");
      }else{
        System.out.print("Good");
      }
      System.out.flush();
    }
} 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();
      char ch = s[0];
      boolean flag = false;
      for(int i=1;i<4;i++){
        if(s[i]==ch){
          flag = true;
          break;
        }else{
          ch = s[i];
        }
      }
      if(flag){
        System.out.print("Bad");
      }else{
        System.out.print("Good");
      }
      System.out.flush();
    }
} Main public static void main(String[] args) {
       Scanner sc = new Scanner(System.in);
      char[] s = sc.next().toCharArray();
      char ch = s[0];
      boolean flag = false;
      for(int i=1;i<4;i++){
        if(s[i]==ch){
          flag = true;
          break;
        }else{
          ch = s[i];
        }
      }
      if(flag){
        System.out.print("Bad");
      }else{
        System.out.print("Good");
      }
      System.out.flush();
    } main {
       Scanner sc = new Scanner(System.in);
      char[] s = sc.next().toCharArray();
      char ch = s[0];
      boolean flag = false;
      for(int i=1;i<4;i++){
        if(s[i]==ch){
          flag = true;
          break;
        }else{
          ch = s[i];
        }
      }
      if(flag){
        System.out.print("Bad");
      }else{
        System.out.print("Good");
      }
      System.out.flush();
    } 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 char ch = s[0]; ch s[0] s 0 boolean flag = false; flag false for(int i=1;i<4;i++){
        if(s[i]==ch){
          flag = true;
          break;
        }else{
          ch = s[i];
        }
      } int i=1; int i=1; i 1 i<4 i 4 i++ i++ i {
        if(s[i]==ch){
          flag = true;
          break;
        }else{
          ch = s[i];
        }
      } {
        if(s[i]==ch){
          flag = true;
          break;
        }else{
          ch = s[i];
        }
      } if(s[i]==ch){
          flag = true;
          break;
        }else{
          ch = s[i];
        } s[i]==ch s[i] s i ch {
          flag = true;
          break;
        } flag = true flag true break; {
          ch = s[i];
        } ch = s[i] ch s[i] s i if(flag){
        System.out.print("Bad");
      }else{
        System.out.print("Good");
      } flag {
        System.out.print("Bad");
      } System.out.print("Bad") System.out.print System.out System System.out "Bad" {
        System.out.print("Good");
      } System.out.print("Good") System.out.print System.out System System.out "Good" System.out.flush() System.out.flush System.out System System.out String[] args args public class Main {
    public static void main(String[] args) {
       Scanner sc = new Scanner(System.in);
      char[] s = sc.next().toCharArray();
      char ch = s[0];
      boolean flag = false;
      for(int i=1;i<4;i++){
        if(s[i]==ch){
          flag = true;
          break;
        }else{
          ch = s[i];
        }
      }
      if(flag){
        System.out.print("Bad");
      }else{
        System.out.print("Good");
      }
      System.out.flush();
    }
} public class Main {
    public static void main(String[] args) {
       Scanner sc = new Scanner(System.in);
      char[] s = sc.next().toCharArray();
      char ch = s[0];
      boolean flag = false;
      for(int i=1;i<4;i++){
        if(s[i]==ch){
          flag = true;
          break;
        }else{
          ch = s[i];
        }
      }
      if(flag){
        System.out.print("Bad");
      }else{
        System.out.print("Good");
      }
      System.out.flush();
    }
} 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();
      char ch = s[0];
      boolean flag = false;
      for(int i=1;i<4;i++){
        if(s[i]==ch){
          flag = true;
          break;
        }else{
          ch = s[i];
        }
      }
      if(flag){
        System.out.print("Bad");
      }else{
        System.out.print("Good");
      }
      System.out.flush();
    }
}