import java.util.ArrayList;
import java.util.Scanner;
class Main{


	static char[][] map;

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);			//文字の入力



		//int N = sc.nextInt();
		String str = sc.next();
		for(int i = 0;i < str.length()-1;i++){
			if(str.charAt(i) == str.charAt(i+1)){
				System.out.print("Bad");
				return;
			}
		}
		System.out.print("Good");


	}

	static int rsearch(int y,int x){

		int count = 0;
		while(x < map[0].length && map[y][x] != '#'){
			count++;
			x++;
		}
		return count;	

	}

	static int csearch(int y,int x){

		int count = 0;
		while(y < map.length && map[y][x] != '#'){
			count++;
			y++;
		}
		return count;	
	}


	static boolean checkswitch(int bit,int[] k,ArrayList<ArrayList<Integer>> list,int[] p,int m){

		//		System.out.println("bit " + bit);

		for(int i = 0;i < m;i++){

			ArrayList<Integer> sub = list.get(i);
			int onnum = 0;						//onの数
			for(int j = 0;j < sub.size();j++){
				//				System.out.println("sub "+ sub.get(j));
				if((bit & (1 << sub.get(j))) != 0){				//目的のスイッチがついているか
					onnum++;
					//					System.out.println("on  ");
				}

			}
			if(onnum % 2 != p[i]){				//一個でも電球がつかなかったらout
				return false;
			}

		}


		return true;

	}

	static int gcd(int a,int b){				//最大公約数を返す
		if(b == 0){
			return a;
		}else{
			return gcd(b, a%b);
		}
	}





}



class Pair implements Comparable{
	int from;
	int end;
	@Override
	public int compareTo(Object other) {
		Pair otherpair = (Pair)other;

		return  otherpair.end - end;
	}
}

 import java.util.ArrayList; ArrayList java.util import java.util.Scanner; Scanner java.util class Main{


	static char[][] map;

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);			//文字の入力



		//int N = sc.nextInt();
		String str = sc.next();
		for(int i = 0;i < str.length()-1;i++){
			if(str.charAt(i) == str.charAt(i+1)){
				System.out.print("Bad");
				return;
			}
		}
		System.out.print("Good");


	}

	static int rsearch(int y,int x){

		int count = 0;
		while(x < map[0].length && map[y][x] != '#'){
			count++;
			x++;
		}
		return count;	

	}

	static int csearch(int y,int x){

		int count = 0;
		while(y < map.length && map[y][x] != '#'){
			count++;
			y++;
		}
		return count;	
	}


	static boolean checkswitch(int bit,int[] k,ArrayList<ArrayList<Integer>> list,int[] p,int m){

		//		System.out.println("bit " + bit);

		for(int i = 0;i < m;i++){

			ArrayList<Integer> sub = list.get(i);
			int onnum = 0;						//onの数
			for(int j = 0;j < sub.size();j++){
				//				System.out.println("sub "+ sub.get(j));
				if((bit & (1 << sub.get(j))) != 0){				//目的のスイッチがついているか
					onnum++;
					//					System.out.println("on  ");
				}

			}
			if(onnum % 2 != p[i]){				//一個でも電球がつかなかったらout
				return false;
			}

		}


		return true;

	}

	static int gcd(int a,int b){				//最大公約数を返す
		if(b == 0){
			return a;
		}else{
			return gcd(b, a%b);
		}
	}





} Main static char[][] map; map public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);			//文字の入力



		//int N = sc.nextInt();
		String str = sc.next();
		for(int i = 0;i < str.length()-1;i++){
			if(str.charAt(i) == str.charAt(i+1)){
				System.out.print("Bad");
				return;
			}
		}
		System.out.print("Good");


	} main {
		Scanner sc = new Scanner(System.in);			//文字の入力



		//int N = sc.nextInt();
		String str = sc.next();
		for(int i = 0;i < str.length()-1;i++){
			if(str.charAt(i) == str.charAt(i+1)){
				System.out.print("Bad");
				return;
			}
		}
		System.out.print("Good");


	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String str = sc.next(); str sc.next() sc.next sc for(int i = 0;i < str.length()-1;i++){
			if(str.charAt(i) == str.charAt(i+1)){
				System.out.print("Bad");
				return;
			}
		} int i = 0; int i = 0; i 0 i < str.length()-1 i str.length()-1 str.length() str.length str 1 i++ i++ i {
			if(str.charAt(i) == str.charAt(i+1)){
				System.out.print("Bad");
				return;
			}
		} {
			if(str.charAt(i) == str.charAt(i+1)){
				System.out.print("Bad");
				return;
			}
		} if(str.charAt(i) == str.charAt(i+1)){
				System.out.print("Bad");
				return;
			} str.charAt(i) == str.charAt(i+1) str.charAt(i) str.charAt str i str.charAt(i+1) str.charAt str i+1 i 1 {
				System.out.print("Bad");
				return;
			} System.out.print("Bad") System.out.print System.out System System.out "Bad" return; System.out.print("Good") System.out.print System.out System System.out "Good" String[] args args static int rsearch(int y,int x){

		int count = 0;
		while(x < map[0].length && map[y][x] != '#'){
			count++;
			x++;
		}
		return count;	

	} rsearch {

		int count = 0;
		while(x < map[0].length && map[y][x] != '#'){
			count++;
			x++;
		}
		return count;	

	} int count = 0; count 0 while(x < map[0].length && map[y][x] != '#'){
			count++;
			x++;
		} x < map[0].length && map[y][x] != '#' x < map[0].length x map[0].length map[0] map 0 map[0].length map[y][x] != '#' map[y][x] map[y] map y x '#' {
			count++;
			x++;
		} count++ count x++ x return count; count int y y int x x static int csearch(int y,int x){

		int count = 0;
		while(y < map.length && map[y][x] != '#'){
			count++;
			y++;
		}
		return count;	
	} csearch {

		int count = 0;
		while(y < map.length && map[y][x] != '#'){
			count++;
			y++;
		}
		return count;	
	} int count = 0; count 0 while(y < map.length && map[y][x] != '#'){
			count++;
			y++;
		} y < map.length && map[y][x] != '#' y < map.length y map.length map map.length map[y][x] != '#' map[y][x] map[y] map y x '#' {
			count++;
			y++;
		} count++ count y++ y return count; count int y y int x x static boolean checkswitch(int bit,int[] k,ArrayList<ArrayList<Integer>> list,int[] p,int m){

		//		System.out.println("bit " + bit);

		for(int i = 0;i < m;i++){

			ArrayList<Integer> sub = list.get(i);
			int onnum = 0;						//onの数
			for(int j = 0;j < sub.size();j++){
				//				System.out.println("sub "+ sub.get(j));
				if((bit & (1 << sub.get(j))) != 0){				//目的のスイッチがついているか
					onnum++;
					//					System.out.println("on  ");
				}

			}
			if(onnum % 2 != p[i]){				//一個でも電球がつかなかったらout
				return false;
			}

		}


		return true;

	} checkswitch {

		//		System.out.println("bit " + bit);

		for(int i = 0;i < m;i++){

			ArrayList<Integer> sub = list.get(i);
			int onnum = 0;						//onの数
			for(int j = 0;j < sub.size();j++){
				//				System.out.println("sub "+ sub.get(j));
				if((bit & (1 << sub.get(j))) != 0){				//目的のスイッチがついているか
					onnum++;
					//					System.out.println("on  ");
				}

			}
			if(onnum % 2 != p[i]){				//一個でも電球がつかなかったらout
				return false;
			}

		}


		return true;

	} for(int i = 0;i < m;i++){

			ArrayList<Integer> sub = list.get(i);
			int onnum = 0;						//onの数
			for(int j = 0;j < sub.size();j++){
				//				System.out.println("sub "+ sub.get(j));
				if((bit & (1 << sub.get(j))) != 0){				//目的のスイッチがついているか
					onnum++;
					//					System.out.println("on  ");
				}

			}
			if(onnum % 2 != p[i]){				//一個でも電球がつかなかったらout
				return false;
			}

		} int i = 0; int i = 0; i 0 i < m i m i++ i++ i {

			ArrayList<Integer> sub = list.get(i);
			int onnum = 0;						//onの数
			for(int j = 0;j < sub.size();j++){
				//				System.out.println("sub "+ sub.get(j));
				if((bit & (1 << sub.get(j))) != 0){				//目的のスイッチがついているか
					onnum++;
					//					System.out.println("on  ");
				}

			}
			if(onnum % 2 != p[i]){				//一個でも電球がつかなかったらout
				return false;
			}

		} {

			ArrayList<Integer> sub = list.get(i);
			int onnum = 0;						//onの数
			for(int j = 0;j < sub.size();j++){
				//				System.out.println("sub "+ sub.get(j));
				if((bit & (1 << sub.get(j))) != 0){				//目的のスイッチがついているか
					onnum++;
					//					System.out.println("on  ");
				}

			}
			if(onnum % 2 != p[i]){				//一個でも電球がつかなかったらout
				return false;
			}

		} ArrayList<Integer> sub = list.get(i); sub list.get(i) list.get list i int onnum = 0; onnum 0 for(int j = 0;j < sub.size();j++){
				//				System.out.println("sub "+ sub.get(j));
				if((bit & (1 << sub.get(j))) != 0){				//目的のスイッチがついているか
					onnum++;
					//					System.out.println("on  ");
				}

			} int j = 0; int j = 0; j 0 j < sub.size() j sub.size() sub.size sub j++ j++ j {
				//				System.out.println("sub "+ sub.get(j));
				if((bit & (1 << sub.get(j))) != 0){				//目的のスイッチがついているか
					onnum++;
					//					System.out.println("on  ");
				}

			} {
				//				System.out.println("sub "+ sub.get(j));
				if((bit & (1 << sub.get(j))) != 0){				//目的のスイッチがついているか
					onnum++;
					//					System.out.println("on  ");
				}

			} if((bit & (1 << sub.get(j))) != 0){				//目的のスイッチがついているか
					onnum++;
					//					System.out.println("on  ");
				} (bit & (1 << sub.get(j))) != 0 (bit & (1 << sub.get(j))) bit (1 << sub.get(j)) 1 sub.get(j) sub.get sub j 0 {				//目的のスイッチがついているか
					onnum++;
					//					System.out.println("on  ");
				} onnum++ onnum if(onnum % 2 != p[i]){				//一個でも電球がつかなかったらout
				return false;
			} onnum % 2 != p[i] onnum % 2 onnum 2 p[i] p i {				//一個でも電球がつかなかったらout
				return false;
			} return false; false return true; true int bit bit int[] k k ArrayList<ArrayList<Integer>> list list int[] p p int m m static int gcd(int a,int b){				//最大公約数を返す
		if(b == 0){
			return a;
		}else{
			return gcd(b, a%b);
		}
	} gcd {				//最大公約数を返す
		if(b == 0){
			return a;
		}else{
			return gcd(b, a%b);
		}
	} if(b == 0){
			return a;
		}else{
			return gcd(b, a%b);
		} b == 0 b 0 {
			return a;
		} return a; a {
			return gcd(b, a%b);
		} return gcd(b, a%b); gcd(b, a%b) gcd b a%b a b int a a int b b class Pair implements Comparable{
	int from;
	int end;
	@Override
	public int compareTo(Object other) {
		Pair otherpair = (Pair)other;

		return  otherpair.end - end;
	}
} Pair int from; from int end; end @Override
	public int compareTo(Object other) {
		Pair otherpair = (Pair)other;

		return  otherpair.end - end;
	} compareTo {
		Pair otherpair = (Pair)other;

		return  otherpair.end - end;
	} Pair otherpair = (Pair)other; otherpair (Pair)other return  otherpair.end - end; otherpair.end - end otherpair.end otherpair otherpair.end end Object other other Comparable
import java.util.ArrayList;
import java.util.Scanner;
class Main{


	static char[][] map;

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);			//文字の入力



		//int N = sc.nextInt();
		String str = sc.next();
		for(int i = 0;i < str.length()-1;i++){
			if(str.charAt(i) == str.charAt(i+1)){
				System.out.print("Bad");
				return;
			}
		}
		System.out.print("Good");


	}

	static int rsearch(int y,int x){

		int count = 0;
		while(x < map[0].length && map[y][x] != '#'){
			count++;
			x++;
		}
		return count;	

	}

	static int csearch(int y,int x){

		int count = 0;
		while(y < map.length && map[y][x] != '#'){
			count++;
			y++;
		}
		return count;	
	}


	static boolean checkswitch(int bit,int[] k,ArrayList<ArrayList<Integer>> list,int[] p,int m){

		//		System.out.println("bit " + bit);

		for(int i = 0;i < m;i++){

			ArrayList<Integer> sub = list.get(i);
			int onnum = 0;						//onの数
			for(int j = 0;j < sub.size();j++){
				//				System.out.println("sub "+ sub.get(j));
				if((bit & (1 << sub.get(j))) != 0){				//目的のスイッチがついているか
					onnum++;
					//					System.out.println("on  ");
				}

			}
			if(onnum % 2 != p[i]){				//一個でも電球がつかなかったらout
				return false;
			}

		}


		return true;

	}

	static int gcd(int a,int b){				//最大公約数を返す
		if(b == 0){
			return a;
		}else{
			return gcd(b, a%b);
		}
	}





}



class Pair implements Comparable{
	int from;
	int end;
	@Override
	public int compareTo(Object other) {
		Pair otherpair = (Pair)other;

		return  otherpair.end - end;
	}
}


