import java.util.*;
import java.math.*;

public class Main {

    static long MOD = 1000000007;



    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        boolean hoge = false;  
        for(int i = 0; i < s.length() - 1; i++) {
            if(s.charAt(i) == s.charAt(i + 1)) hoge = true;
        }
        System.out.println(hoge?"Bad":"Good");

    }
} import java.util.*; util.* java import java.math.*; math.* java public class Main {

    static long MOD = 1000000007;



    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        boolean hoge = false;  
        for(int i = 0; i < s.length() - 1; i++) {
            if(s.charAt(i) == s.charAt(i + 1)) hoge = true;
        }
        System.out.println(hoge?"Bad":"Good");

    }
} Main static long MOD = 1000000007; MOD 1000000007 public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        boolean hoge = false;  
        for(int i = 0; i < s.length() - 1; i++) {
            if(s.charAt(i) == s.charAt(i + 1)) hoge = true;
        }
        System.out.println(hoge?"Bad":"Good");

    } main {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        boolean hoge = false;  
        for(int i = 0; i < s.length() - 1; i++) {
            if(s.charAt(i) == s.charAt(i + 1)) hoge = true;
        }
        System.out.println(hoge?"Bad":"Good");

    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc boolean hoge = false; hoge false for(int i = 0; i < s.length() - 1; i++) {
            if(s.charAt(i) == s.charAt(i + 1)) hoge = true;
        } 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)) hoge = true;
        } {
            if(s.charAt(i) == s.charAt(i + 1)) hoge = true;
        } if(s.charAt(i) == s.charAt(i + 1)) hoge = true; 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 hoge = true hoge true System.out.println(hoge?"Bad":"Good") System.out.println System.out System System.out hoge?"Bad":"Good" hoge "Bad" "Good" String[] args args public class Main {

    static long MOD = 1000000007;



    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        boolean hoge = false;  
        for(int i = 0; i < s.length() - 1; i++) {
            if(s.charAt(i) == s.charAt(i + 1)) hoge = true;
        }
        System.out.println(hoge?"Bad":"Good");

    }
} public class Main {

    static long MOD = 1000000007;



    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        boolean hoge = false;  
        for(int i = 0; i < s.length() - 1; i++) {
            if(s.charAt(i) == s.charAt(i + 1)) hoge = true;
        }
        System.out.println(hoge?"Bad":"Good");

    }
} Main
import java.util.*;
import java.math.*;

public class Main {

    static long MOD = 1000000007;



    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        boolean hoge = false;  
        for(int i = 0; i < s.length() - 1; i++) {
            if(s.charAt(i) == s.charAt(i + 1)) hoge = true;
        }
        System.out.println(hoge?"Bad":"Good");

    }
}