

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		String[] lines = line.split("");
		boolean flag = true;
		int before = Integer.parseInt(lines[0]);

		for(int i = 1 ; i < lines.length ; i++) {
			int after = Integer.parseInt(lines[i]);
			if(before == after) {
				flag = false;
				break;
			}
			before = after;
		}

		if(flag) {
			System.out.println("Good");
		}else {
			System.out.println("Bad");
		}

	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		String[] lines = line.split("");
		boolean flag = true;
		int before = Integer.parseInt(lines[0]);

		for(int i = 1 ; i < lines.length ; i++) {
			int after = Integer.parseInt(lines[i]);
			if(before == after) {
				flag = false;
				break;
			}
			before = after;
		}

		if(flag) {
			System.out.println("Good");
		}else {
			System.out.println("Bad");
		}

	}

} Main public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		String[] lines = line.split("");
		boolean flag = true;
		int before = Integer.parseInt(lines[0]);

		for(int i = 1 ; i < lines.length ; i++) {
			int after = Integer.parseInt(lines[i]);
			if(before == after) {
				flag = false;
				break;
			}
			before = after;
		}

		if(flag) {
			System.out.println("Good");
		}else {
			System.out.println("Bad");
		}

	} main {
		// TODO 自動生成されたメソッド・スタブ

		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		String[] lines = line.split("");
		boolean flag = true;
		int before = Integer.parseInt(lines[0]);

		for(int i = 1 ; i < lines.length ; i++) {
			int after = Integer.parseInt(lines[i]);
			if(before == after) {
				flag = false;
				break;
			}
			before = after;
		}

		if(flag) {
			System.out.println("Good");
		}else {
			System.out.println("Bad");
		}

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String line = sc.nextLine(); line sc.nextLine() sc.nextLine sc String[] lines = line.split(""); lines line.split("") line.split line "" boolean flag = true; flag true int before = Integer.parseInt(lines[0]); before Integer.parseInt(lines[0]) Integer.parseInt Integer lines[0] lines 0 for(int i = 1 ; i < lines.length ; i++) {
			int after = Integer.parseInt(lines[i]);
			if(before == after) {
				flag = false;
				break;
			}
			before = after;
		} int i = 1 ; int i = 1 ; i 1 i < lines.length i lines.length lines lines.length i++ i++ i {
			int after = Integer.parseInt(lines[i]);
			if(before == after) {
				flag = false;
				break;
			}
			before = after;
		} {
			int after = Integer.parseInt(lines[i]);
			if(before == after) {
				flag = false;
				break;
			}
			before = after;
		} int after = Integer.parseInt(lines[i]); after Integer.parseInt(lines[i]) Integer.parseInt Integer lines[i] lines i if(before == after) {
				flag = false;
				break;
			} before == after before after {
				flag = false;
				break;
			} flag = false flag false break; before = after before after if(flag) {
			System.out.println("Good");
		}else {
			System.out.println("Bad");
		} flag {
			System.out.println("Good");
		} System.out.println("Good") System.out.println System.out System System.out "Good" {
			System.out.println("Bad");
		} System.out.println("Bad") System.out.println System.out System System.out "Bad" String[] args args public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		String[] lines = line.split("");
		boolean flag = true;
		int before = Integer.parseInt(lines[0]);

		for(int i = 1 ; i < lines.length ; i++) {
			int after = Integer.parseInt(lines[i]);
			if(before == after) {
				flag = false;
				break;
			}
			before = after;
		}

		if(flag) {
			System.out.println("Good");
		}else {
			System.out.println("Bad");
		}

	}

} public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		String[] lines = line.split("");
		boolean flag = true;
		int before = Integer.parseInt(lines[0]);

		for(int i = 1 ; i < lines.length ; i++) {
			int after = Integer.parseInt(lines[i]);
			if(before == after) {
				flag = false;
				break;
			}
			before = after;
		}

		if(flag) {
			System.out.println("Good");
		}else {
			System.out.println("Bad");
		}

	}

} Main


import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		String[] lines = line.split("");
		boolean flag = true;
		int before = Integer.parseInt(lines[0]);

		for(int i = 1 ; i < lines.length ; i++) {
			int after = Integer.parseInt(lines[i]);
			if(before == after) {
				flag = false;
				break;
			}
			before = after;
		}

		if(flag) {
			System.out.println("Good");
		}else {
			System.out.println("Bad");
		}

	}

}
