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

public class Main { 
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		char tmp = 'A';
		String result = "Good";
		for(int i = 0;i<line.length();i++) {
			char compChar = line.charAt(i);
			if(tmp == compChar) {
				result = "Bad";
				break;
			}
			tmp = compChar;
		}
		System.out.println(result);
	}
}
	
	 import java.util.ArrayList; ArrayList java.util import java.util.Arrays; Arrays java.util import java.util.Collections; Collections 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) {
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		char tmp = 'A';
		String result = "Good";
		for(int i = 0;i<line.length();i++) {
			char compChar = line.charAt(i);
			if(tmp == compChar) {
				result = "Bad";
				break;
			}
			tmp = compChar;
		}
		System.out.println(result);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		char tmp = 'A';
		String result = "Good";
		for(int i = 0;i<line.length();i++) {
			char compChar = line.charAt(i);
			if(tmp == compChar) {
				result = "Bad";
				break;
			}
			tmp = compChar;
		}
		System.out.println(result);
	} main {
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		char tmp = 'A';
		String result = "Good";
		for(int i = 0;i<line.length();i++) {
			char compChar = line.charAt(i);
			if(tmp == compChar) {
				result = "Bad";
				break;
			}
			tmp = compChar;
		}
		System.out.println(result);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String line = sc.nextLine(); line sc.nextLine() sc.nextLine sc char tmp = 'A'; tmp 'A' String result = "Good"; result "Good" for(int i = 0;i<line.length();i++) {
			char compChar = line.charAt(i);
			if(tmp == compChar) {
				result = "Bad";
				break;
			}
			tmp = compChar;
		} int i = 0; int i = 0; i 0 i<line.length() i line.length() line.length line i++ i++ i {
			char compChar = line.charAt(i);
			if(tmp == compChar) {
				result = "Bad";
				break;
			}
			tmp = compChar;
		} {
			char compChar = line.charAt(i);
			if(tmp == compChar) {
				result = "Bad";
				break;
			}
			tmp = compChar;
		} char compChar = line.charAt(i); compChar line.charAt(i) line.charAt line i if(tmp == compChar) {
				result = "Bad";
				break;
			} tmp == compChar tmp compChar {
				result = "Bad";
				break;
			} result = "Bad" result "Bad" break; tmp = compChar tmp compChar System.out.println(result) System.out.println System.out System System.out result String[] args args public class Main { 
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		char tmp = 'A';
		String result = "Good";
		for(int i = 0;i<line.length();i++) {
			char compChar = line.charAt(i);
			if(tmp == compChar) {
				result = "Bad";
				break;
			}
			tmp = compChar;
		}
		System.out.println(result);
	}
} public class Main { 
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		char tmp = 'A';
		String result = "Good";
		for(int i = 0;i<line.length();i++) {
			char compChar = line.charAt(i);
			if(tmp == compChar) {
				result = "Bad";
				break;
			}
			tmp = compChar;
		}
		System.out.println(result);
	}
} Main
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;

public class Main { 
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		char tmp = 'A';
		String result = "Good";
		for(int i = 0;i<line.length();i++) {
			char compChar = line.charAt(i);
			if(tmp == compChar) {
				result = "Bad";
				break;
			}
			tmp = compChar;
		}
		System.out.println(result);
	}
}
	
	