import java.util.*;

public class Main {

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

        boolean isOK = true;
        for (int i = 0; i < 3; i++) {
            char c0 = s.charAt(i);
            char c1 = s.charAt(i+1);
            if (c0 == c1) {
                isOK = false;
                break;
            }
        }
        if (isOK) {
            System.out.println("Good");
        } else {
            System.out.println("Bad");
        }
   	}
} import java.util.*; util.* java public class Main {

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

        boolean isOK = true;
        for (int i = 0; i < 3; i++) {
            char c0 = s.charAt(i);
            char c1 = s.charAt(i+1);
            if (c0 == c1) {
                isOK = false;
                break;
            }
        }
        if (isOK) {
            System.out.println("Good");
        } else {
            System.out.println("Bad");
        }
   	}
} Main public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	String s = sc.next();

        boolean isOK = true;
        for (int i = 0; i < 3; i++) {
            char c0 = s.charAt(i);
            char c1 = s.charAt(i+1);
            if (c0 == c1) {
                isOK = false;
                break;
            }
        }
        if (isOK) {
            System.out.println("Good");
        } else {
            System.out.println("Bad");
        }
   	} main {
    	Scanner sc = new Scanner(System.in);
    	String s = sc.next();

        boolean isOK = true;
        for (int i = 0; i < 3; i++) {
            char c0 = s.charAt(i);
            char c1 = s.charAt(i+1);
            if (c0 == c1) {
                isOK = false;
                break;
            }
        }
        if (isOK) {
            System.out.println("Good");
        } else {
            System.out.println("Bad");
        }
   	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc boolean isOK = true; isOK true for (int i = 0; i < 3; i++) {
            char c0 = s.charAt(i);
            char c1 = s.charAt(i+1);
            if (c0 == c1) {
                isOK = false;
                break;
            }
        } int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
            char c0 = s.charAt(i);
            char c1 = s.charAt(i+1);
            if (c0 == c1) {
                isOK = false;
                break;
            }
        } {
            char c0 = s.charAt(i);
            char c1 = s.charAt(i+1);
            if (c0 == c1) {
                isOK = false;
                break;
            }
        } char c0 = s.charAt(i); c0 s.charAt(i) s.charAt s i char c1 = s.charAt(i+1); c1 s.charAt(i+1) s.charAt s i+1 i 1 if (c0 == c1) {
                isOK = false;
                break;
            } c0 == c1 c0 c1 {
                isOK = false;
                break;
            } isOK = false isOK false break; if (isOK) {
            System.out.println("Good");
        } else {
            System.out.println("Bad");
        } isOK {
            System.out.println("Good");
        } System.out.println("Good") System.out.println System.out System System.out "Good" {
            System.out.println("Bad");
        } System.out.println("Bad") System.out.println System.out System System.out "Bad" String[] args args public class Main {

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

        boolean isOK = true;
        for (int i = 0; i < 3; i++) {
            char c0 = s.charAt(i);
            char c1 = s.charAt(i+1);
            if (c0 == c1) {
                isOK = false;
                break;
            }
        }
        if (isOK) {
            System.out.println("Good");
        } else {
            System.out.println("Bad");
        }
   	}
} public class Main {

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

        boolean isOK = true;
        for (int i = 0; i < 3; i++) {
            char c0 = s.charAt(i);
            char c1 = s.charAt(i+1);
            if (c0 == c1) {
                isOK = false;
                break;
            }
        }
        if (isOK) {
            System.out.println("Good");
        } else {
            System.out.println("Bad");
        }
   	}
} Main
import java.util.*;

public class Main {

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

        boolean isOK = true;
        for (int i = 0; i < 3; i++) {
            char c0 = s.charAt(i);
            char c1 = s.charAt(i+1);
            if (c0 == c1) {
                isOK = false;
                break;
            }
        }
        if (isOK) {
            System.out.println("Good");
        } else {
            System.out.println("Bad");
        }
   	}
}
