import java.util.*;

public class Main {
 
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        char tmp = s.charAt(0);
        boolean isGood = true;
        for (int i = 1; i < s.length(); i++) {
            if (tmp == s.charAt(i)) {
                isGood = false;
            }
            tmp = s.charAt(i);
        }
        System.out.println(isGood ? "Good" : "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();
        char tmp = s.charAt(0);
        boolean isGood = true;
        for (int i = 1; i < s.length(); i++) {
            if (tmp == s.charAt(i)) {
                isGood = false;
            }
            tmp = s.charAt(i);
        }
        System.out.println(isGood ? "Good" : "Bad");
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        char tmp = s.charAt(0);
        boolean isGood = true;
        for (int i = 1; i < s.length(); i++) {
            if (tmp == s.charAt(i)) {
                isGood = false;
            }
            tmp = s.charAt(i);
        }
        System.out.println(isGood ? "Good" : "Bad");
    } main {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        char tmp = s.charAt(0);
        boolean isGood = true;
        for (int i = 1; i < s.length(); i++) {
            if (tmp == s.charAt(i)) {
                isGood = false;
            }
            tmp = s.charAt(i);
        }
        System.out.println(isGood ? "Good" : "Bad");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc char tmp = s.charAt(0); tmp s.charAt(0) s.charAt s 0 boolean isGood = true; isGood true for (int i = 1; i < s.length(); i++) {
            if (tmp == s.charAt(i)) {
                isGood = false;
            }
            tmp = s.charAt(i);
        } int i = 1; int i = 1; i 1 i < s.length() i s.length() s.length s i++ i++ i {
            if (tmp == s.charAt(i)) {
                isGood = false;
            }
            tmp = s.charAt(i);
        } {
            if (tmp == s.charAt(i)) {
                isGood = false;
            }
            tmp = s.charAt(i);
        } if (tmp == s.charAt(i)) {
                isGood = false;
            } tmp == s.charAt(i) tmp s.charAt(i) s.charAt s i {
                isGood = false;
            } isGood = false isGood false tmp = s.charAt(i) tmp s.charAt(i) s.charAt s i System.out.println(isGood ? "Good" : "Bad") System.out.println System.out System System.out isGood ? "Good" : "Bad" isGood "Good" "Bad" String[] args args public class Main {
 
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        char tmp = s.charAt(0);
        boolean isGood = true;
        for (int i = 1; i < s.length(); i++) {
            if (tmp == s.charAt(i)) {
                isGood = false;
            }
            tmp = s.charAt(i);
        }
        System.out.println(isGood ? "Good" : "Bad");
    }
} public class Main {
 
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        char tmp = s.charAt(0);
        boolean isGood = true;
        for (int i = 1; i < s.length(); i++) {
            if (tmp == s.charAt(i)) {
                isGood = false;
            }
            tmp = s.charAt(i);
        }
        System.out.println(isGood ? "Good" : "Bad");
    }
} Main
import java.util.*;

public class Main {
 
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        char tmp = s.charAt(0);
        boolean isGood = true;
        for (int i = 1; i < s.length(); i++) {
            if (tmp == s.charAt(i)) {
                isGood = false;
            }
            tmp = s.charAt(i);
        }
        System.out.println(isGood ? "Good" : "Bad");
    }
}