import java.util.*;
public class Main {
	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		String pre = s.substring(0, 1);
		for(int i = 1; i < 4; i++) {
			if(s.substring(i, i + 1).equals(pre)) {
				System.out.println("Bad");
				return;
			} else {
				pre = s.substring(i, i + 1);
			}
		}
		System.out.println("Good");
	}
} import java.util.*; util.* java public class Main {
	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		String pre = s.substring(0, 1);
		for(int i = 1; i < 4; i++) {
			if(s.substring(i, i + 1).equals(pre)) {
				System.out.println("Bad");
				return;
			} else {
				pre = s.substring(i, i + 1);
			}
		}
		System.out.println("Good");
	}
} Main public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		String pre = s.substring(0, 1);
		for(int i = 1; i < 4; i++) {
			if(s.substring(i, i + 1).equals(pre)) {
				System.out.println("Bad");
				return;
			} else {
				pre = s.substring(i, i + 1);
			}
		}
		System.out.println("Good");
	} main {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		String pre = s.substring(0, 1);
		for(int i = 1; i < 4; i++) {
			if(s.substring(i, i + 1).equals(pre)) {
				System.out.println("Bad");
				return;
			} else {
				pre = s.substring(i, i + 1);
			}
		}
		System.out.println("Good");
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc String pre = s.substring(0, 1); pre s.substring(0, 1) s.substring s 0 1 for(int i = 1; i < 4; i++) {
			if(s.substring(i, i + 1).equals(pre)) {
				System.out.println("Bad");
				return;
			} else {
				pre = s.substring(i, i + 1);
			}
		} int i = 1; int i = 1; i 1 i < 4 i 4 i++ i++ i {
			if(s.substring(i, i + 1).equals(pre)) {
				System.out.println("Bad");
				return;
			} else {
				pre = s.substring(i, i + 1);
			}
		} {
			if(s.substring(i, i + 1).equals(pre)) {
				System.out.println("Bad");
				return;
			} else {
				pre = s.substring(i, i + 1);
			}
		} if(s.substring(i, i + 1).equals(pre)) {
				System.out.println("Bad");
				return;
			} else {
				pre = s.substring(i, i + 1);
			} s.substring(i, i + 1).equals(pre) s.substring(i, i + 1).equals s.substring(i, i + 1) s.substring s i i + 1 i 1 pre {
				System.out.println("Bad");
				return;
			} System.out.println("Bad") System.out.println System.out System System.out "Bad" return; {
				pre = s.substring(i, i + 1);
			} pre = s.substring(i, i + 1) pre s.substring(i, i + 1) s.substring s i i + 1 i 1 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[]) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		String pre = s.substring(0, 1);
		for(int i = 1; i < 4; i++) {
			if(s.substring(i, i + 1).equals(pre)) {
				System.out.println("Bad");
				return;
			} else {
				pre = s.substring(i, i + 1);
			}
		}
		System.out.println("Good");
	}
} public class Main {
	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		String pre = s.substring(0, 1);
		for(int i = 1; i < 4; i++) {
			if(s.substring(i, i + 1).equals(pre)) {
				System.out.println("Bad");
				return;
			} else {
				pre = s.substring(i, i + 1);
			}
		}
		System.out.println("Good");
	}
} Main
import java.util.*;
public class Main {
	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		String pre = s.substring(0, 1);
		for(int i = 1; i < 4; i++) {
			if(s.substring(i, i + 1).equals(pre)) {
				System.out.println("Bad");
				return;
			} else {
				pre = s.substring(i, i + 1);
			}
		}
		System.out.println("Good");
	}
}
