import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        char[] s = sc.next().toCharArray();

        boolean ans = true;
        for (int i = 1; i < 4; i++) {
            if (s[i-1] == s[i]) {
                ans = false;
                break;
            }
        }

        System.out.println(ans ? "Good" : "Bad");
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        char[] s = sc.next().toCharArray();

        boolean ans = true;
        for (int i = 1; i < 4; i++) {
            if (s[i-1] == s[i]) {
                ans = false;
                break;
            }
        }

        System.out.println(ans ? "Good" : "Bad");
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        char[] s = sc.next().toCharArray();

        boolean ans = true;
        for (int i = 1; i < 4; i++) {
            if (s[i-1] == s[i]) {
                ans = false;
                break;
            }
        }

        System.out.println(ans ? "Good" : "Bad");
    } main {
        Scanner sc = new Scanner(System.in);

        char[] s = sc.next().toCharArray();

        boolean ans = true;
        for (int i = 1; i < 4; i++) {
            if (s[i-1] == s[i]) {
                ans = false;
                break;
            }
        }

        System.out.println(ans ? "Good" : "Bad");
    } 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 ans = true; ans true for (int i = 1; i < 4; i++) {
            if (s[i-1] == s[i]) {
                ans = false;
                break;
            }
        } int i = 1; int i = 1; i 1 i < 4 i 4 i++ i++ i {
            if (s[i-1] == s[i]) {
                ans = false;
                break;
            }
        } {
            if (s[i-1] == s[i]) {
                ans = false;
                break;
            }
        } if (s[i-1] == s[i]) {
                ans = false;
                break;
            } s[i-1] == s[i] s[i-1] s i-1 i 1 s[i] s i {
                ans = false;
                break;
            } ans = false ans false break; System.out.println(ans ? "Good" : "Bad") System.out.println System.out System System.out ans ? "Good" : "Bad" ans "Good" "Bad" String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        char[] s = sc.next().toCharArray();

        boolean ans = true;
        for (int i = 1; i < 4; i++) {
            if (s[i-1] == s[i]) {
                ans = false;
                break;
            }
        }

        System.out.println(ans ? "Good" : "Bad");
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        char[] s = sc.next().toCharArray();

        boolean ans = true;
        for (int i = 1; i < 4; i++) {
            if (s[i-1] == s[i]) {
                ans = false;
                break;
            }
        }

        System.out.println(ans ? "Good" : "Bad");
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        char[] s = sc.next().toCharArray();

        boolean ans = true;
        for (int i = 1; i < 4; i++) {
            if (s[i-1] == s[i]) {
                ans = false;
                break;
            }
        }

        System.out.println(ans ? "Good" : "Bad");
    }
}