

import java.util.Scanner;

 class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String s = in.next();
        boolean good=true;
        for(int i=1;i<4;i++){
            if(s.charAt(i)==s.charAt(i-1)){
                good=false;
            }
        }
        if(!good)
            System.out.println("Bad");
        else
            System.out.println("Good");
    }
} import java.util.Scanner; Scanner java.util class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String s = in.next();
        boolean good=true;
        for(int i=1;i<4;i++){
            if(s.charAt(i)==s.charAt(i-1)){
                good=false;
            }
        }
        if(!good)
            System.out.println("Bad");
        else
            System.out.println("Good");
    }
} Main public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String s = in.next();
        boolean good=true;
        for(int i=1;i<4;i++){
            if(s.charAt(i)==s.charAt(i-1)){
                good=false;
            }
        }
        if(!good)
            System.out.println("Bad");
        else
            System.out.println("Good");
    } main {
        Scanner in = new Scanner(System.in);
        String s = in.next();
        boolean good=true;
        for(int i=1;i<4;i++){
            if(s.charAt(i)==s.charAt(i-1)){
                good=false;
            }
        }
        if(!good)
            System.out.println("Bad");
        else
            System.out.println("Good");
    } Scanner in = new Scanner(System.in); in new Scanner(System.in) String s = in.next(); s in.next() in.next in boolean good=true; good true for(int i=1;i<4;i++){
            if(s.charAt(i)==s.charAt(i-1)){
                good=false;
            }
        } int i=1; int i=1; i 1 i<4 i 4 i++ i++ i {
            if(s.charAt(i)==s.charAt(i-1)){
                good=false;
            }
        } {
            if(s.charAt(i)==s.charAt(i-1)){
                good=false;
            }
        } if(s.charAt(i)==s.charAt(i-1)){
                good=false;
            } s.charAt(i)==s.charAt(i-1) s.charAt(i) s.charAt s i s.charAt(i-1) s.charAt s i-1 i 1 {
                good=false;
            } good=false good false if(!good)
            System.out.println("Bad");
        else
            System.out.println("Good"); !good good System.out.println("Bad") System.out.println System.out System System.out "Bad" System.out.println("Good") System.out.println System.out System System.out "Good" String[] args args


import java.util.Scanner;

 class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String s = in.next();
        boolean good=true;
        for(int i=1;i<4;i++){
            if(s.charAt(i)==s.charAt(i-1)){
                good=false;
            }
        }
        if(!good)
            System.out.println("Bad");
        else
            System.out.println("Good");
    }
}
