import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        List<Integer> l = new ArrayList<>();
        boolean ans = true;
        Scanner sc = new Scanner(System.in);
        String s = sc.nextLine();
        for (int i = 0; i < s.length(); i++) {
            int x = s.charAt(i);
            l.add(x);
        }
        for (int i = 1; i < s.length(); i++) {
            if (l.get(i) == l.get(i-1)) {
                ans = false;
            }
        }
        if (ans == true) {
            System.out.println("Good");
        } else {
            System.out.println("Bad");
        }
    }
} import java.util.ArrayList; ArrayList java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        List<Integer> l = new ArrayList<>();
        boolean ans = true;
        Scanner sc = new Scanner(System.in);
        String s = sc.nextLine();
        for (int i = 0; i < s.length(); i++) {
            int x = s.charAt(i);
            l.add(x);
        }
        for (int i = 1; i < s.length(); i++) {
            if (l.get(i) == l.get(i-1)) {
                ans = false;
            }
        }
        if (ans == true) {
            System.out.println("Good");
        } else {
            System.out.println("Bad");
        }
    }
} Main public static void main(String[] args) {
        List<Integer> l = new ArrayList<>();
        boolean ans = true;
        Scanner sc = new Scanner(System.in);
        String s = sc.nextLine();
        for (int i = 0; i < s.length(); i++) {
            int x = s.charAt(i);
            l.add(x);
        }
        for (int i = 1; i < s.length(); i++) {
            if (l.get(i) == l.get(i-1)) {
                ans = false;
            }
        }
        if (ans == true) {
            System.out.println("Good");
        } else {
            System.out.println("Bad");
        }
    } main {
        List<Integer> l = new ArrayList<>();
        boolean ans = true;
        Scanner sc = new Scanner(System.in);
        String s = sc.nextLine();
        for (int i = 0; i < s.length(); i++) {
            int x = s.charAt(i);
            l.add(x);
        }
        for (int i = 1; i < s.length(); i++) {
            if (l.get(i) == l.get(i-1)) {
                ans = false;
            }
        }
        if (ans == true) {
            System.out.println("Good");
        } else {
            System.out.println("Bad");
        }
    } List<Integer> l = new ArrayList<>(); l new ArrayList<>() boolean ans = true; ans true Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.nextLine(); s sc.nextLine() sc.nextLine sc for (int i = 0; i < s.length(); i++) {
            int x = s.charAt(i);
            l.add(x);
        } int i = 0; int i = 0; i 0 i < s.length() i s.length() s.length s i++ i++ i {
            int x = s.charAt(i);
            l.add(x);
        } {
            int x = s.charAt(i);
            l.add(x);
        } int x = s.charAt(i); x s.charAt(i) s.charAt s i l.add(x) l.add l x for (int i = 1; i < s.length(); i++) {
            if (l.get(i) == l.get(i-1)) {
                ans = false;
            }
        } int i = 1; int i = 1; i 1 i < s.length() i s.length() s.length s i++ i++ i {
            if (l.get(i) == l.get(i-1)) {
                ans = false;
            }
        } {
            if (l.get(i) == l.get(i-1)) {
                ans = false;
            }
        } if (l.get(i) == l.get(i-1)) {
                ans = false;
            } l.get(i) == l.get(i-1) l.get(i) l.get l i l.get(i-1) l.get l i-1 i 1 {
                ans = false;
            } ans = false ans false if (ans == true) {
            System.out.println("Good");
        } else {
            System.out.println("Bad");
        } ans == true ans true {
            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) {
        List<Integer> l = new ArrayList<>();
        boolean ans = true;
        Scanner sc = new Scanner(System.in);
        String s = sc.nextLine();
        for (int i = 0; i < s.length(); i++) {
            int x = s.charAt(i);
            l.add(x);
        }
        for (int i = 1; i < s.length(); i++) {
            if (l.get(i) == l.get(i-1)) {
                ans = false;
            }
        }
        if (ans == true) {
            System.out.println("Good");
        } else {
            System.out.println("Bad");
        }
    }
} public class Main {

    public static void main(String[] args) {
        List<Integer> l = new ArrayList<>();
        boolean ans = true;
        Scanner sc = new Scanner(System.in);
        String s = sc.nextLine();
        for (int i = 0; i < s.length(); i++) {
            int x = s.charAt(i);
            l.add(x);
        }
        for (int i = 1; i < s.length(); i++) {
            if (l.get(i) == l.get(i-1)) {
                ans = false;
            }
        }
        if (ans == true) {
            System.out.println("Good");
        } else {
            System.out.println("Bad");
        }
    }
} Main
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        List<Integer> l = new ArrayList<>();
        boolean ans = true;
        Scanner sc = new Scanner(System.in);
        String s = sc.nextLine();
        for (int i = 0; i < s.length(); i++) {
            int x = s.charAt(i);
            l.add(x);
        }
        for (int i = 1; i < s.length(); i++) {
            if (l.get(i) == l.get(i-1)) {
                ans = false;
            }
        }
        if (ans == true) {
            System.out.println("Good");
        } else {
            System.out.println("Bad");
        }
    }
}