import java.util.Scanner;

public class Main{
  public static void main(String[] args){

	    Scanner sc = new Scanner(System.in);  //標準入力の宣言
      	String S = sc.next(); //入力数
       
        String S1 = S.substring(0,1);
        String S2 = S.substring(1,2);
        String S3 = S.substring(2,3);
        String S4 = S.substring(3,4);
    
        String kekka = "Good";
        
        if (S1.equals(S2) || S2.equals(S3) || S3.equals(S4)) {
          kekka = "Bad";
        }

        System.out.println(kekka); //入力数の確認

  }
} import java.util.Scanner; Scanner java.util public class Main{
  public static void main(String[] args){

	    Scanner sc = new Scanner(System.in);  //標準入力の宣言
      	String S = sc.next(); //入力数
       
        String S1 = S.substring(0,1);
        String S2 = S.substring(1,2);
        String S3 = S.substring(2,3);
        String S4 = S.substring(3,4);
    
        String kekka = "Good";
        
        if (S1.equals(S2) || S2.equals(S3) || S3.equals(S4)) {
          kekka = "Bad";
        }

        System.out.println(kekka); //入力数の確認

  }
} Main public static void main(String[] args){

	    Scanner sc = new Scanner(System.in);  //標準入力の宣言
      	String S = sc.next(); //入力数
       
        String S1 = S.substring(0,1);
        String S2 = S.substring(1,2);
        String S3 = S.substring(2,3);
        String S4 = S.substring(3,4);
    
        String kekka = "Good";
        
        if (S1.equals(S2) || S2.equals(S3) || S3.equals(S4)) {
          kekka = "Bad";
        }

        System.out.println(kekka); //入力数の確認

  } main {

	    Scanner sc = new Scanner(System.in);  //標準入力の宣言
      	String S = sc.next(); //入力数
       
        String S1 = S.substring(0,1);
        String S2 = S.substring(1,2);
        String S3 = S.substring(2,3);
        String S4 = S.substring(3,4);
    
        String kekka = "Good";
        
        if (S1.equals(S2) || S2.equals(S3) || S3.equals(S4)) {
          kekka = "Bad";
        }

        System.out.println(kekka); //入力数の確認

  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S = sc.next(); S sc.next() sc.next sc String S1 = S.substring(0,1); S1 S.substring(0,1) S.substring S 0 1 String S2 = S.substring(1,2); S2 S.substring(1,2) S.substring S 1 2 String S3 = S.substring(2,3); S3 S.substring(2,3) S.substring S 2 3 String S4 = S.substring(3,4); S4 S.substring(3,4) S.substring S 3 4 String kekka = "Good"; kekka "Good" if (S1.equals(S2) || S2.equals(S3) || S3.equals(S4)) {
          kekka = "Bad";
        } S1.equals(S2) || S2.equals(S3) || S3.equals(S4) S1.equals(S2) || S2.equals(S3) || S3.equals(S4) S1.equals(S2) S1.equals S1 S2 S2.equals(S3) S2.equals S2 S3 S3.equals(S4) S3.equals S3 S4 {
          kekka = "Bad";
        } kekka = "Bad" kekka "Bad" System.out.println(kekka) System.out.println System.out System System.out kekka String[] args args public class Main{
  public static void main(String[] args){

	    Scanner sc = new Scanner(System.in);  //標準入力の宣言
      	String S = sc.next(); //入力数
       
        String S1 = S.substring(0,1);
        String S2 = S.substring(1,2);
        String S3 = S.substring(2,3);
        String S4 = S.substring(3,4);
    
        String kekka = "Good";
        
        if (S1.equals(S2) || S2.equals(S3) || S3.equals(S4)) {
          kekka = "Bad";
        }

        System.out.println(kekka); //入力数の確認

  }
} public class Main{
  public static void main(String[] args){

	    Scanner sc = new Scanner(System.in);  //標準入力の宣言
      	String S = sc.next(); //入力数
       
        String S1 = S.substring(0,1);
        String S2 = S.substring(1,2);
        String S3 = S.substring(2,3);
        String S4 = S.substring(3,4);
    
        String kekka = "Good";
        
        if (S1.equals(S2) || S2.equals(S3) || S3.equals(S4)) {
          kekka = "Bad";
        }

        System.out.println(kekka); //入力数の確認

  }
} Main
import java.util.Scanner;

public class Main{
  public static void main(String[] args){

	    Scanner sc = new Scanner(System.in);  //標準入力の宣言
      	String S = sc.next(); //入力数
       
        String S1 = S.substring(0,1);
        String S2 = S.substring(1,2);
        String S3 = S.substring(2,3);
        String S4 = S.substring(3,4);
    
        String kekka = "Good";
        
        if (S1.equals(S2) || S2.equals(S3) || S3.equals(S4)) {
          kekka = "Bad";
        }

        System.out.println(kekka); //入力数の確認

  }
}
