import java.util.*;
public class Main{
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    String a = sc.next();
    String[] s = a.split("");
    int[] ary = new int[4];
    for(int count = 0;count<4;count++){
      ary[count] = Integer.parseInt(s[count]);
      if(count>0&&ary[count]==ary[count-1]){
        System.out.println("Bad");
        break;
      }else if(count==3){
          System.out.println("Good");
      }
    }
  } 
} import java.util.*; util.* java public class Main{
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    String a = sc.next();
    String[] s = a.split("");
    int[] ary = new int[4];
    for(int count = 0;count<4;count++){
      ary[count] = Integer.parseInt(s[count]);
      if(count>0&&ary[count]==ary[count-1]){
        System.out.println("Bad");
        break;
      }else if(count==3){
          System.out.println("Good");
      }
    }
  } 
} Main public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    String a = sc.next();
    String[] s = a.split("");
    int[] ary = new int[4];
    for(int count = 0;count<4;count++){
      ary[count] = Integer.parseInt(s[count]);
      if(count>0&&ary[count]==ary[count-1]){
        System.out.println("Bad");
        break;
      }else if(count==3){
          System.out.println("Good");
      }
    }
  } main {
    Scanner sc = new Scanner(System.in);
    String a = sc.next();
    String[] s = a.split("");
    int[] ary = new int[4];
    for(int count = 0;count<4;count++){
      ary[count] = Integer.parseInt(s[count]);
      if(count>0&&ary[count]==ary[count-1]){
        System.out.println("Bad");
        break;
      }else if(count==3){
          System.out.println("Good");
      }
    }
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String a = sc.next(); a sc.next() sc.next sc String[] s = a.split(""); s a.split("") a.split a "" int[] ary = new int[4]; ary new int[4] 4 for(int count = 0;count<4;count++){
      ary[count] = Integer.parseInt(s[count]);
      if(count>0&&ary[count]==ary[count-1]){
        System.out.println("Bad");
        break;
      }else if(count==3){
          System.out.println("Good");
      }
    } int count = 0; int count = 0; count 0 count<4 count 4 count++ count++ count {
      ary[count] = Integer.parseInt(s[count]);
      if(count>0&&ary[count]==ary[count-1]){
        System.out.println("Bad");
        break;
      }else if(count==3){
          System.out.println("Good");
      }
    } {
      ary[count] = Integer.parseInt(s[count]);
      if(count>0&&ary[count]==ary[count-1]){
        System.out.println("Bad");
        break;
      }else if(count==3){
          System.out.println("Good");
      }
    } ary[count] = Integer.parseInt(s[count]) ary[count] ary count Integer.parseInt(s[count]) Integer.parseInt Integer s[count] s count if(count>0&&ary[count]==ary[count-1]){
        System.out.println("Bad");
        break;
      }else if(count==3){
          System.out.println("Good");
      } count>0&&ary[count]==ary[count-1] count>0 count 0 ary[count]==ary[count-1] ary[count] ary count ary[count-1] ary count-1 count 1 {
        System.out.println("Bad");
        break;
      } System.out.println("Bad") System.out.println System.out System System.out "Bad" break; if(count==3){
          System.out.println("Good");
      } count==3 count 3 {
          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 a = sc.next();
    String[] s = a.split("");
    int[] ary = new int[4];
    for(int count = 0;count<4;count++){
      ary[count] = Integer.parseInt(s[count]);
      if(count>0&&ary[count]==ary[count-1]){
        System.out.println("Bad");
        break;
      }else if(count==3){
          System.out.println("Good");
      }
    }
  } 
} public class Main{
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    String a = sc.next();
    String[] s = a.split("");
    int[] ary = new int[4];
    for(int count = 0;count<4;count++){
      ary[count] = Integer.parseInt(s[count]);
      if(count>0&&ary[count]==ary[count-1]){
        System.out.println("Bad");
        break;
      }else if(count==3){
          System.out.println("Good");
      }
    }
  } 
} Main
import java.util.*;
public class Main{
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    String a = sc.next();
    String[] s = a.split("");
    int[] ary = new int[4];
    for(int count = 0;count<4;count++){
      ary[count] = Integer.parseInt(s[count]);
      if(count>0&&ary[count]==ary[count-1]){
        System.out.println("Bad");
        break;
      }else if(count==3){
          System.out.println("Good");
      }
    }
  } 
}