import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

		// 文字列の入力
		String[] sList = sc.next().split("");
      
        String last = "";
        String ans = "Good";
        for(String s : sList) {
          if (s.equals(last)) {
            ans = "Bad";
            break;
          } else {
            last = s;
          }
        }
    
		// 出力
		System.out.println(ans);
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

		// 文字列の入力
		String[] sList = sc.next().split("");
      
        String last = "";
        String ans = "Good";
        for(String s : sList) {
          if (s.equals(last)) {
            ans = "Bad";
            break;
          } else {
            last = s;
          }
        }
    
		// 出力
		System.out.println(ans);
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

		// 文字列の入力
		String[] sList = sc.next().split("");
      
        String last = "";
        String ans = "Good";
        for(String s : sList) {
          if (s.equals(last)) {
            ans = "Bad";
            break;
          } else {
            last = s;
          }
        }
    
		// 出力
		System.out.println(ans);
	} main {
		Scanner sc = new Scanner(System.in);

		// 文字列の入力
		String[] sList = sc.next().split("");
      
        String last = "";
        String ans = "Good";
        for(String s : sList) {
          if (s.equals(last)) {
            ans = "Bad";
            break;
          } else {
            last = s;
          }
        }
    
		// 出力
		System.out.println(ans);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String[] sList = sc.next().split(""); sList sc.next().split("") sc.next().split sc.next() sc.next sc "" String last = ""; last "" String ans = "Good"; ans "Good" for(String s : sList) {
          if (s.equals(last)) {
            ans = "Bad";
            break;
          } else {
            last = s;
          }
        } String s sList {
          if (s.equals(last)) {
            ans = "Bad";
            break;
          } else {
            last = s;
          }
        } {
          if (s.equals(last)) {
            ans = "Bad";
            break;
          } else {
            last = s;
          }
        } if (s.equals(last)) {
            ans = "Bad";
            break;
          } else {
            last = s;
          } s.equals(last) s.equals s last {
            ans = "Bad";
            break;
          } ans = "Bad" ans "Bad" break; {
            last = s;
          } last = s last s 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){
		Scanner sc = new Scanner(System.in);

		// 文字列の入力
		String[] sList = sc.next().split("");
      
        String last = "";
        String ans = "Good";
        for(String s : sList) {
          if (s.equals(last)) {
            ans = "Bad";
            break;
          } else {
            last = s;
          }
        }
    
		// 出力
		System.out.println(ans);
	}
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

		// 文字列の入力
		String[] sList = sc.next().split("");
      
        String last = "";
        String ans = "Good";
        for(String s : sList) {
          if (s.equals(last)) {
            ans = "Bad";
            break;
          } else {
            last = s;
          }
        }
    
		// 出力
		System.out.println(ans);
	}
} Main
import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

		// 文字列の入力
		String[] sList = sc.next().split("");
      
        String last = "";
        String ans = "Good";
        for(String s : sList) {
          if (s.equals(last)) {
            ans = "Bad";
            break;
          } else {
            last = s;
          }
        }
    
		// 出力
		System.out.println(ans);
	}
}