import java.util.*;

public class Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        String s = scan.next();
        for(int i = 0; i < s.length() - 1; i++){
            if(s.charAt(i) == s.charAt(i + 1)){
            System.out.println("Bad");
            return;
            }
        }
        System.out.println("Good");
        scan.close();
    }
} import java.util.*; util.* java public class Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        String s = scan.next();
        for(int i = 0; i < s.length() - 1; i++){
            if(s.charAt(i) == s.charAt(i + 1)){
            System.out.println("Bad");
            return;
            }
        }
        System.out.println("Good");
        scan.close();
    }
} Main public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        String s = scan.next();
        for(int i = 0; i < s.length() - 1; i++){
            if(s.charAt(i) == s.charAt(i + 1)){
            System.out.println("Bad");
            return;
            }
        }
        System.out.println("Good");
        scan.close();
    } main {
        Scanner scan = new Scanner(System.in);
        String s = scan.next();
        for(int i = 0; i < s.length() - 1; i++){
            if(s.charAt(i) == s.charAt(i + 1)){
            System.out.println("Bad");
            return;
            }
        }
        System.out.println("Good");
        scan.close();
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String s = scan.next(); s scan.next() scan.next scan for(int i = 0; i < s.length() - 1; i++){
            if(s.charAt(i) == s.charAt(i + 1)){
            System.out.println("Bad");
            return;
            }
        } int i = 0; int i = 0; i 0 i < s.length() - 1 i s.length() - 1 s.length() s.length s 1 i++ i++ i {
            if(s.charAt(i) == s.charAt(i + 1)){
            System.out.println("Bad");
            return;
            }
        } {
            if(s.charAt(i) == s.charAt(i + 1)){
            System.out.println("Bad");
            return;
            }
        } if(s.charAt(i) == s.charAt(i + 1)){
            System.out.println("Bad");
            return;
            } 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 {
            System.out.println("Bad");
            return;
            } System.out.println("Bad") System.out.println System.out System System.out "Bad" return; System.out.println("Good") System.out.println System.out System System.out "Good" scan.close() scan.close scan String[] args args public class Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        String s = scan.next();
        for(int i = 0; i < s.length() - 1; i++){
            if(s.charAt(i) == s.charAt(i + 1)){
            System.out.println("Bad");
            return;
            }
        }
        System.out.println("Good");
        scan.close();
    }
} public class Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        String s = scan.next();
        for(int i = 0; i < s.length() - 1; i++){
            if(s.charAt(i) == s.charAt(i + 1)){
            System.out.println("Bad");
            return;
            }
        }
        System.out.println("Good");
        scan.close();
    }
} Main
import java.util.*;

public class Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        String s = scan.next();
        for(int i = 0; i < s.length() - 1; i++){
            if(s.charAt(i) == s.charAt(i + 1)){
            System.out.println("Bad");
            return;
            }
        }
        System.out.println("Good");
        scan.close();
    }
}
