import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main{
	public static void main(String[] args) throws IOException {
		try (BufferedReader br = new BufferedReader(
				new InputStreamReader(System.in))) {

			String in = br.readLine();
			String chr[] = in.split("");
			int x = Integer.parseInt(chr[0]);
			int y = 0;
			String ans = "Good";
			for(int i =1; i<chr.length; i++) {
				y=Integer.parseInt(chr[i]);
				if(x==y) {
					ans = "Bad";
					break;
				}else {
					x=y;
				}
			}

			 System.out.println(ans);
		}
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main{
	public static void main(String[] args) throws IOException {
		try (BufferedReader br = new BufferedReader(
				new InputStreamReader(System.in))) {

			String in = br.readLine();
			String chr[] = in.split("");
			int x = Integer.parseInt(chr[0]);
			int y = 0;
			String ans = "Good";
			for(int i =1; i<chr.length; i++) {
				y=Integer.parseInt(chr[i]);
				if(x==y) {
					ans = "Bad";
					break;
				}else {
					x=y;
				}
			}

			 System.out.println(ans);
		}
	}
} Main public static void main(String[] args) throws IOException {
		try (BufferedReader br = new BufferedReader(
				new InputStreamReader(System.in))) {

			String in = br.readLine();
			String chr[] = in.split("");
			int x = Integer.parseInt(chr[0]);
			int y = 0;
			String ans = "Good";
			for(int i =1; i<chr.length; i++) {
				y=Integer.parseInt(chr[i]);
				if(x==y) {
					ans = "Bad";
					break;
				}else {
					x=y;
				}
			}

			 System.out.println(ans);
		}
	} main {
		try (BufferedReader br = new BufferedReader(
				new InputStreamReader(System.in))) {

			String in = br.readLine();
			String chr[] = in.split("");
			int x = Integer.parseInt(chr[0]);
			int y = 0;
			String ans = "Good";
			for(int i =1; i<chr.length; i++) {
				y=Integer.parseInt(chr[i]);
				if(x==y) {
					ans = "Bad";
					break;
				}else {
					x=y;
				}
			}

			 System.out.println(ans);
		}
	} try (BufferedReader br = new BufferedReader(
				new InputStreamReader(System.in))) {

			String in = br.readLine();
			String chr[] = in.split("");
			int x = Integer.parseInt(chr[0]);
			int y = 0;
			String ans = "Good";
			for(int i =1; i<chr.length; i++) {
				y=Integer.parseInt(chr[i]);
				if(x==y) {
					ans = "Bad";
					break;
				}else {
					x=y;
				}
			}

			 System.out.println(ans);
		} {

			String in = br.readLine();
			String chr[] = in.split("");
			int x = Integer.parseInt(chr[0]);
			int y = 0;
			String ans = "Good";
			for(int i =1; i<chr.length; i++) {
				y=Integer.parseInt(chr[i]);
				if(x==y) {
					ans = "Bad";
					break;
				}else {
					x=y;
				}
			}

			 System.out.println(ans);
		} BufferedReader br = new BufferedReader(
				new InputStreamReader(System.in)) BufferedReader br = new BufferedReader(
				new InputStreamReader(System.in)) new BufferedReader(
				new InputStreamReader(System.in)) String in = br.readLine(); in br.readLine() br.readLine br String chr[] = in.split(""); chr in.split("") in.split in "" int x = Integer.parseInt(chr[0]); x Integer.parseInt(chr[0]) Integer.parseInt Integer chr[0] chr 0 int y = 0; y 0 String ans = "Good"; ans "Good" for(int i =1; i<chr.length; i++) {
				y=Integer.parseInt(chr[i]);
				if(x==y) {
					ans = "Bad";
					break;
				}else {
					x=y;
				}
			} int i =1; int i =1; i 1 i<chr.length i chr.length chr chr.length i++ i++ i {
				y=Integer.parseInt(chr[i]);
				if(x==y) {
					ans = "Bad";
					break;
				}else {
					x=y;
				}
			} {
				y=Integer.parseInt(chr[i]);
				if(x==y) {
					ans = "Bad";
					break;
				}else {
					x=y;
				}
			} y=Integer.parseInt(chr[i]) y Integer.parseInt(chr[i]) Integer.parseInt Integer chr[i] chr i if(x==y) {
					ans = "Bad";
					break;
				}else {
					x=y;
				} x==y x y {
					ans = "Bad";
					break;
				} ans = "Bad" ans "Bad" break; {
					x=y;
				} x=y x y System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main{
	public static void main(String[] args) throws IOException {
		try (BufferedReader br = new BufferedReader(
				new InputStreamReader(System.in))) {

			String in = br.readLine();
			String chr[] = in.split("");
			int x = Integer.parseInt(chr[0]);
			int y = 0;
			String ans = "Good";
			for(int i =1; i<chr.length; i++) {
				y=Integer.parseInt(chr[i]);
				if(x==y) {
					ans = "Bad";
					break;
				}else {
					x=y;
				}
			}

			 System.out.println(ans);
		}
	}
} public class Main{
	public static void main(String[] args) throws IOException {
		try (BufferedReader br = new BufferedReader(
				new InputStreamReader(System.in))) {

			String in = br.readLine();
			String chr[] = in.split("");
			int x = Integer.parseInt(chr[0]);
			int y = 0;
			String ans = "Good";
			for(int i =1; i<chr.length; i++) {
				y=Integer.parseInt(chr[i]);
				if(x==y) {
					ans = "Bad";
					break;
				}else {
					x=y;
				}
			}

			 System.out.println(ans);
		}
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main{
	public static void main(String[] args) throws IOException {
		try (BufferedReader br = new BufferedReader(
				new InputStreamReader(System.in))) {

			String in = br.readLine();
			String chr[] = in.split("");
			int x = Integer.parseInt(chr[0]);
			int y = 0;
			String ans = "Good";
			for(int i =1; i<chr.length; i++) {
				y=Integer.parseInt(chr[i]);
				if(x==y) {
					ans = "Bad";
					break;
				}else {
					x=y;
				}
			}

			 System.out.println(ans);
		}
	}
}