import java.util.Scanner;

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

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