import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        char[] s = sc.next().toCharArray();
        boolean Judge = false;
        for (int i = 1; i < s.length; i++) {
            if (s[i-1] == s[i]) {
                Judge = !Judge;
                break;
            }
        }

        if (Judge) {
            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) throws Exception {
        Scanner sc = new Scanner(System.in);
        char[] s = sc.next().toCharArray();
        boolean Judge = false;
        for (int i = 1; i < s.length; i++) {
            if (s[i-1] == s[i]) {
                Judge = !Judge;
                break;
            }
        }

        if (Judge) {
            System.out.println("Bad");
        }else{
            System.out.println("Good");
        }
    }
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        char[] s = sc.next().toCharArray();
        boolean Judge = false;
        for (int i = 1; i < s.length; i++) {
            if (s[i-1] == s[i]) {
                Judge = !Judge;
                break;
            }
        }

        if (Judge) {
            System.out.println("Bad");
        }else{
            System.out.println("Good");
        }
    } main {
        Scanner sc = new Scanner(System.in);
        char[] s = sc.next().toCharArray();
        boolean Judge = false;
        for (int i = 1; i < s.length; i++) {
            if (s[i-1] == s[i]) {
                Judge = !Judge;
                break;
            }
        }

        if (Judge) {
            System.out.println("Bad");
        }else{
            System.out.println("Good");
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) char[] s = sc.next().toCharArray(); s sc.next().toCharArray() sc.next().toCharArray sc.next() sc.next sc boolean Judge = false; Judge false for (int i = 1; i < s.length; i++) {
            if (s[i-1] == s[i]) {
                Judge = !Judge;
                break;
            }
        } int i = 1; int i = 1; i 1 i < s.length i s.length s s.length i++ i++ i {
            if (s[i-1] == s[i]) {
                Judge = !Judge;
                break;
            }
        } {
            if (s[i-1] == s[i]) {
                Judge = !Judge;
                break;
            }
        } if (s[i-1] == s[i]) {
                Judge = !Judge;
                break;
            } s[i-1] == s[i] s[i-1] s i-1 i 1 s[i] s i {
                Judge = !Judge;
                break;
            } Judge = !Judge Judge !Judge Judge break; if (Judge) {
            System.out.println("Bad");
        }else{
            System.out.println("Good");
        } Judge {
            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) throws Exception {
        Scanner sc = new Scanner(System.in);
        char[] s = sc.next().toCharArray();
        boolean Judge = false;
        for (int i = 1; i < s.length; i++) {
            if (s[i-1] == s[i]) {
                Judge = !Judge;
                break;
            }
        }

        if (Judge) {
            System.out.println("Bad");
        }else{
            System.out.println("Good");
        }
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        char[] s = sc.next().toCharArray();
        boolean Judge = false;
        for (int i = 1; i < s.length; i++) {
            if (s[i-1] == s[i]) {
                Judge = !Judge;
                break;
            }
        }

        if (Judge) {
            System.out.println("Bad");
        }else{
            System.out.println("Good");
        }
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        char[] s = sc.next().toCharArray();
        boolean Judge = false;
        for (int i = 1; i < s.length; i++) {
            if (s[i-1] == s[i]) {
                Judge = !Judge;
                break;
            }
        }

        if (Judge) {
            System.out.println("Bad");
        }else{
            System.out.println("Good");
        }
    }
}
