
import java.util.*;

public class Main {
	public static void main(String[] args) {
		Main main = new Main();
		main.run();
	}

	public void run() {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		for(int i=1; i<s.length(); i++) {
			if(s.charAt(i-1) == s.charAt(i)) {
				System.out.println("Bad");
				sc.close();
				return;
			}
		}
		System.out.println("Good");
		sc.close();
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args) {
		Main main = new Main();
		main.run();
	}

	public void run() {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		for(int i=1; i<s.length(); i++) {
			if(s.charAt(i-1) == s.charAt(i)) {
				System.out.println("Bad");
				sc.close();
				return;
			}
		}
		System.out.println("Good");
		sc.close();
	}
} Main public static void main(String[] args) {
		Main main = new Main();
		main.run();
	} main {
		Main main = new Main();
		main.run();
	} Main main = new Main(); main new Main() main.run() main.run main String[] args args public void run() {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		for(int i=1; i<s.length(); i++) {
			if(s.charAt(i-1) == s.charAt(i)) {
				System.out.println("Bad");
				sc.close();
				return;
			}
		}
		System.out.println("Good");
		sc.close();
	} run {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		for(int i=1; i<s.length(); i++) {
			if(s.charAt(i-1) == s.charAt(i)) {
				System.out.println("Bad");
				sc.close();
				return;
			}
		}
		System.out.println("Good");
		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc for(int i=1; i<s.length(); i++) {
			if(s.charAt(i-1) == s.charAt(i)) {
				System.out.println("Bad");
				sc.close();
				return;
			}
		} int i=1; int i=1; i 1 i<s.length() i s.length() s.length s i++ i++ i {
			if(s.charAt(i-1) == s.charAt(i)) {
				System.out.println("Bad");
				sc.close();
				return;
			}
		} {
			if(s.charAt(i-1) == s.charAt(i)) {
				System.out.println("Bad");
				sc.close();
				return;
			}
		} if(s.charAt(i-1) == s.charAt(i)) {
				System.out.println("Bad");
				sc.close();
				return;
			} s.charAt(i-1) == s.charAt(i) s.charAt(i-1) s.charAt s i-1 i 1 s.charAt(i) s.charAt s i {
				System.out.println("Bad");
				sc.close();
				return;
			} System.out.println("Bad") System.out.println System.out System System.out "Bad" sc.close() sc.close sc return; System.out.println("Good") System.out.println System.out System System.out "Good" sc.close() sc.close sc public class Main {
	public static void main(String[] args) {
		Main main = new Main();
		main.run();
	}

	public void run() {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		for(int i=1; i<s.length(); i++) {
			if(s.charAt(i-1) == s.charAt(i)) {
				System.out.println("Bad");
				sc.close();
				return;
			}
		}
		System.out.println("Good");
		sc.close();
	}
} public class Main {
	public static void main(String[] args) {
		Main main = new Main();
		main.run();
	}

	public void run() {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		for(int i=1; i<s.length(); i++) {
			if(s.charAt(i-1) == s.charAt(i)) {
				System.out.println("Bad");
				sc.close();
				return;
			}
		}
		System.out.println("Good");
		sc.close();
	}
} Main

import java.util.*;

public class Main {
	public static void main(String[] args) {
		Main main = new Main();
		main.run();
	}

	public void run() {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		for(int i=1; i<s.length(); i++) {
			if(s.charAt(i-1) == s.charAt(i)) {
				System.out.println("Bad");
				sc.close();
				return;
			}
		}
		System.out.println("Good");
		sc.close();
	}
}
