import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner teclado = new Scanner(System.in);
        String s = teclado.next();
        Boolean check = false;
       for(int x = 0; x < 3; x++){
           if(s.charAt(x) == s.charAt(x+1)){
                check = true;
                break;
   }
       }
       if(check){
           System.out.println("Bad");
       }else{
           System.out.println("Good");
       }
    }   
    } import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner teclado = new Scanner(System.in);
        String s = teclado.next();
        Boolean check = false;
       for(int x = 0; x < 3; x++){
           if(s.charAt(x) == s.charAt(x+1)){
                check = true;
                break;
   }
       }
       if(check){
           System.out.println("Bad");
       }else{
           System.out.println("Good");
       }
    }   
    } Main public static void main(String[] args) {
        Scanner teclado = new Scanner(System.in);
        String s = teclado.next();
        Boolean check = false;
       for(int x = 0; x < 3; x++){
           if(s.charAt(x) == s.charAt(x+1)){
                check = true;
                break;
   }
       }
       if(check){
           System.out.println("Bad");
       }else{
           System.out.println("Good");
       }
    } main {
        Scanner teclado = new Scanner(System.in);
        String s = teclado.next();
        Boolean check = false;
       for(int x = 0; x < 3; x++){
           if(s.charAt(x) == s.charAt(x+1)){
                check = true;
                break;
   }
       }
       if(check){
           System.out.println("Bad");
       }else{
           System.out.println("Good");
       }
    } Scanner teclado = new Scanner(System.in); teclado new Scanner(System.in) String s = teclado.next(); s teclado.next() teclado.next teclado Boolean check = false; check false for(int x = 0; x < 3; x++){
           if(s.charAt(x) == s.charAt(x+1)){
                check = true;
                break;
   }
       } int x = 0; int x = 0; x 0 x < 3 x 3 x++ x++ x {
           if(s.charAt(x) == s.charAt(x+1)){
                check = true;
                break;
   }
       } {
           if(s.charAt(x) == s.charAt(x+1)){
                check = true;
                break;
   }
       } if(s.charAt(x) == s.charAt(x+1)){
                check = true;
                break;
   } s.charAt(x) == s.charAt(x+1) s.charAt(x) s.charAt s x s.charAt(x+1) s.charAt s x+1 x 1 {
                check = true;
                break;
   } check = true check true break; if(check){
           System.out.println("Bad");
       }else{
           System.out.println("Good");
       } check {
           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 public class Main {
    public static void main(String[] args) {
        Scanner teclado = new Scanner(System.in);
        String s = teclado.next();
        Boolean check = false;
       for(int x = 0; x < 3; x++){
           if(s.charAt(x) == s.charAt(x+1)){
                check = true;
                break;
   }
       }
       if(check){
           System.out.println("Bad");
       }else{
           System.out.println("Good");
       }
    }   
    } public class Main {
    public static void main(String[] args) {
        Scanner teclado = new Scanner(System.in);
        String s = teclado.next();
        Boolean check = false;
       for(int x = 0; x < 3; x++){
           if(s.charAt(x) == s.charAt(x+1)){
                check = true;
                break;
   }
       }
       if(check){
           System.out.println("Bad");
       }else{
           System.out.println("Good");
       }
    }   
    } Main
import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner teclado = new Scanner(System.in);
        String s = teclado.next();
        Boolean check = false;
       for(int x = 0; x < 3; x++){
           if(s.charAt(x) == s.charAt(x+1)){
                check = true;
                break;
   }
       }
       if(check){
           System.out.println("Bad");
       }else{
           System.out.println("Good");
       }
    }   
    }
