import java.util.*;
import java.lang.*;

import static java.lang.StrictMath.abs;

class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String n = sc.next();
        String[] a = new String[4];
        a = n.split("");
        int count =0;
        for(int i= 0; i< 3 ; i++){
            if(!(a[i].equals(a[i+1]))){
                count++;
                if(count ==3){
                    System.out.println("Good");
                }else{
                    continue;}
            }else{
                System.out.println("Bad");
                break;
            }
        }
    }

        } import java.util.*; util.* java import java.lang.*; lang.* java import static java.lang.StrictMath.abs; import static java.lang.StrictMath.abs; import static java.lang.StrictMath.abs; class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String n = sc.next();
        String[] a = new String[4];
        a = n.split("");
        int count =0;
        for(int i= 0; i< 3 ; i++){
            if(!(a[i].equals(a[i+1]))){
                count++;
                if(count ==3){
                    System.out.println("Good");
                }else{
                    continue;}
            }else{
                System.out.println("Bad");
                break;
            }
        }
    }

        } Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String n = sc.next();
        String[] a = new String[4];
        a = n.split("");
        int count =0;
        for(int i= 0; i< 3 ; i++){
            if(!(a[i].equals(a[i+1]))){
                count++;
                if(count ==3){
                    System.out.println("Good");
                }else{
                    continue;}
            }else{
                System.out.println("Bad");
                break;
            }
        }
    } main {
        Scanner sc = new Scanner(System.in);
        String n = sc.next();
        String[] a = new String[4];
        a = n.split("");
        int count =0;
        for(int i= 0; i< 3 ; i++){
            if(!(a[i].equals(a[i+1]))){
                count++;
                if(count ==3){
                    System.out.println("Good");
                }else{
                    continue;}
            }else{
                System.out.println("Bad");
                break;
            }
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String n = sc.next(); n sc.next() sc.next sc String[] a = new String[4]; a new String[4] 4 a = n.split("") a n.split("") n.split n "" int count =0; count 0 for(int i= 0; i< 3 ; i++){
            if(!(a[i].equals(a[i+1]))){
                count++;
                if(count ==3){
                    System.out.println("Good");
                }else{
                    continue;}
            }else{
                System.out.println("Bad");
                break;
            }
        } int i= 0; int i= 0; i 0 i< 3 i 3 i++ i++ i {
            if(!(a[i].equals(a[i+1]))){
                count++;
                if(count ==3){
                    System.out.println("Good");
                }else{
                    continue;}
            }else{
                System.out.println("Bad");
                break;
            }
        } {
            if(!(a[i].equals(a[i+1]))){
                count++;
                if(count ==3){
                    System.out.println("Good");
                }else{
                    continue;}
            }else{
                System.out.println("Bad");
                break;
            }
        } if(!(a[i].equals(a[i+1]))){
                count++;
                if(count ==3){
                    System.out.println("Good");
                }else{
                    continue;}
            }else{
                System.out.println("Bad");
                break;
            } !(a[i].equals(a[i+1])) (a[i].equals(a[i+1])) a[i].equals a[i] a i a[i+1] a i+1 i 1 {
                count++;
                if(count ==3){
                    System.out.println("Good");
                }else{
                    continue;}
            } count++ count if(count ==3){
                    System.out.println("Good");
                }else{
                    continue;} count ==3 count 3 {
                    System.out.println("Good");
                } System.out.println("Good") System.out.println System.out System System.out "Good" {
                    continue;} continue; {
                System.out.println("Bad");
                break;
            } System.out.println("Bad") System.out.println System.out System System.out "Bad" break; String[] args args
import java.util.*;
import java.lang.*;

import static java.lang.StrictMath.abs;

class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String n = sc.next();
        String[] a = new String[4];
        a = n.split("");
        int count =0;
        for(int i= 0; i< 3 ; i++){
            if(!(a[i].equals(a[i+1]))){
                count++;
                if(count ==3){
                    System.out.println("Good");
                }else{
                    continue;}
            }else{
                System.out.println("Bad");
                break;
            }
        }
    }

        }
