import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        boolean isBad = false;
        for (int i = a.length() - 1; i >= 1; i--) {
            if (a.charAt(i) == a.charAt(i - 1)) isBad = true;
        }
        
        if (isBad) {
            System.out.println("Bad");
        } else {
            System.out.println("Good");
        }
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        boolean isBad = false;
        for (int i = a.length() - 1; i >= 1; i--) {
            if (a.charAt(i) == a.charAt(i - 1)) isBad = true;
        }
        
        if (isBad) {
            System.out.println("Bad");
        } else {
            System.out.println("Good");
        }
    }
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        boolean isBad = false;
        for (int i = a.length() - 1; i >= 1; i--) {
            if (a.charAt(i) == a.charAt(i - 1)) isBad = true;
        }
        
        if (isBad) {
            System.out.println("Bad");
        } else {
            System.out.println("Good");
        }
    } main {
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        boolean isBad = false;
        for (int i = a.length() - 1; i >= 1; i--) {
            if (a.charAt(i) == a.charAt(i - 1)) isBad = true;
        }
        
        if (isBad) {
            System.out.println("Bad");
        } else {
            System.out.println("Good");
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String a = sc.next(); a sc.next() sc.next sc boolean isBad = false; isBad false for (int i = a.length() - 1; i >= 1; i--) {
            if (a.charAt(i) == a.charAt(i - 1)) isBad = true;
        } int i = a.length() - 1; int i = a.length() - 1; i a.length() - 1 a.length() a.length a 1 i >= 1 i 1 i-- i-- i {
            if (a.charAt(i) == a.charAt(i - 1)) isBad = true;
        } {
            if (a.charAt(i) == a.charAt(i - 1)) isBad = true;
        } if (a.charAt(i) == a.charAt(i - 1)) isBad = true; a.charAt(i) == a.charAt(i - 1) a.charAt(i) a.charAt a i a.charAt(i - 1) a.charAt a i - 1 i 1 isBad = true isBad true if (isBad) {
            System.out.println("Bad");
        } else {
            System.out.println("Good");
        } isBad {
            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);
        String a = sc.next();
        boolean isBad = false;
        for (int i = a.length() - 1; i >= 1; i--) {
            if (a.charAt(i) == a.charAt(i - 1)) isBad = true;
        }
        
        if (isBad) {
            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);
        String a = sc.next();
        boolean isBad = false;
        for (int i = a.length() - 1; i >= 1; i--) {
            if (a.charAt(i) == a.charAt(i - 1)) isBad = true;
        }
        
        if (isBad) {
            System.out.println("Bad");
        } else {
            System.out.println("Good");
        }
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        boolean isBad = false;
        for (int i = a.length() - 1; i >= 1; i--) {
            if (a.charAt(i) == a.charAt(i - 1)) isBad = true;
        }
        
        if (isBad) {
            System.out.println("Bad");
        } else {
            System.out.println("Good");
        }
    }
}
