import java.util.Scanner;
public class Main{
  public static void main(String[] args){
   Scanner sc = new Scanner(System.in);
   String x = sc.next();
   String s = "0";
   for( int i = 0; i <= 2 ; i++){
     String y = x.substring(i, i+1);
	  if( y.equals(x.substring(i + 1, i + 2))){
        System.out.println("Bad");
        s = "1";
        break;
      }
    }
    if( s.equals("0")){
      System.out.println("Good");
    }
  }
}  import java.util.Scanner; Scanner java.util public class Main{
  public static void main(String[] args){
   Scanner sc = new Scanner(System.in);
   String x = sc.next();
   String s = "0";
   for( int i = 0; i <= 2 ; i++){
     String y = x.substring(i, i+1);
	  if( y.equals(x.substring(i + 1, i + 2))){
        System.out.println("Bad");
        s = "1";
        break;
      }
    }
    if( s.equals("0")){
      System.out.println("Good");
    }
  }
} Main public static void main(String[] args){
   Scanner sc = new Scanner(System.in);
   String x = sc.next();
   String s = "0";
   for( int i = 0; i <= 2 ; i++){
     String y = x.substring(i, i+1);
	  if( y.equals(x.substring(i + 1, i + 2))){
        System.out.println("Bad");
        s = "1";
        break;
      }
    }
    if( s.equals("0")){
      System.out.println("Good");
    }
  } main {
   Scanner sc = new Scanner(System.in);
   String x = sc.next();
   String s = "0";
   for( int i = 0; i <= 2 ; i++){
     String y = x.substring(i, i+1);
	  if( y.equals(x.substring(i + 1, i + 2))){
        System.out.println("Bad");
        s = "1";
        break;
      }
    }
    if( s.equals("0")){
      System.out.println("Good");
    }
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String x = sc.next(); x sc.next() sc.next sc String s = "0"; s "0" for( int i = 0; i <= 2 ; i++){
     String y = x.substring(i, i+1);
	  if( y.equals(x.substring(i + 1, i + 2))){
        System.out.println("Bad");
        s = "1";
        break;
      }
    } int i = 0; int i = 0; i 0 i <= 2 i 2 i++ i++ i {
     String y = x.substring(i, i+1);
	  if( y.equals(x.substring(i + 1, i + 2))){
        System.out.println("Bad");
        s = "1";
        break;
      }
    } {
     String y = x.substring(i, i+1);
	  if( y.equals(x.substring(i + 1, i + 2))){
        System.out.println("Bad");
        s = "1";
        break;
      }
    } String y = x.substring(i, i+1); y x.substring(i, i+1) x.substring x i i+1 i 1 if( y.equals(x.substring(i + 1, i + 2))){
        System.out.println("Bad");
        s = "1";
        break;
      } y.equals(x.substring(i + 1, i + 2)) y.equals y x.substring(i + 1, i + 2) x.substring x i + 1 i 1 i + 2 i 2 {
        System.out.println("Bad");
        s = "1";
        break;
      } System.out.println("Bad") System.out.println System.out System System.out "Bad" s = "1" s "1" break; if( s.equals("0")){
      System.out.println("Good");
    } s.equals("0") s.equals s "0" {
      System.out.println("Good");
    } System.out.println("Good") System.out.println System.out System System.out "Good" String[] args args public class Main{
  public static void main(String[] args){
   Scanner sc = new Scanner(System.in);
   String x = sc.next();
   String s = "0";
   for( int i = 0; i <= 2 ; i++){
     String y = x.substring(i, i+1);
	  if( y.equals(x.substring(i + 1, i + 2))){
        System.out.println("Bad");
        s = "1";
        break;
      }
    }
    if( s.equals("0")){
      System.out.println("Good");
    }
  }
} public class Main{
  public static void main(String[] args){
   Scanner sc = new Scanner(System.in);
   String x = sc.next();
   String s = "0";
   for( int i = 0; i <= 2 ; i++){
     String y = x.substring(i, i+1);
	  if( y.equals(x.substring(i + 1, i + 2))){
        System.out.println("Bad");
        s = "1";
        break;
      }
    }
    if( s.equals("0")){
      System.out.println("Good");
    }
  }
} Main
import java.util.Scanner;
public class Main{
  public static void main(String[] args){
   Scanner sc = new Scanner(System.in);
   String x = sc.next();
   String s = "0";
   for( int i = 0; i <= 2 ; i++){
     String y = x.substring(i, i+1);
	  if( y.equals(x.substring(i + 1, i + 2))){
        System.out.println("Bad");
        s = "1";
        break;
      }
    }
    if( s.equals("0")){
      System.out.println("Good");
    }
  }
} 