import java.util.Scanner;
public class Main{
  public static void main(String[] args){
    Scanner sunuke = new Scanner(System.in);
    String pass = sunuke.next();
    
    String p1 = pass.substring(0,1);
    String p2 = pass.substring(1,2);
    String p3 = pass.substring(2,3);
    String p4 = pass.substring(3,4);

    if (p1.equals(p2) || p2.equals(p3) || p3.equals(p4)) {
       System.out.println("Bad");
       }
    else{
       System.out.println("Good");
       }    
  }
} import java.util.Scanner; Scanner java.util public class Main{
  public static void main(String[] args){
    Scanner sunuke = new Scanner(System.in);
    String pass = sunuke.next();
    
    String p1 = pass.substring(0,1);
    String p2 = pass.substring(1,2);
    String p3 = pass.substring(2,3);
    String p4 = pass.substring(3,4);

    if (p1.equals(p2) || p2.equals(p3) || p3.equals(p4)) {
       System.out.println("Bad");
       }
    else{
       System.out.println("Good");
       }    
  }
} Main public static void main(String[] args){
    Scanner sunuke = new Scanner(System.in);
    String pass = sunuke.next();
    
    String p1 = pass.substring(0,1);
    String p2 = pass.substring(1,2);
    String p3 = pass.substring(2,3);
    String p4 = pass.substring(3,4);

    if (p1.equals(p2) || p2.equals(p3) || p3.equals(p4)) {
       System.out.println("Bad");
       }
    else{
       System.out.println("Good");
       }    
  } main {
    Scanner sunuke = new Scanner(System.in);
    String pass = sunuke.next();
    
    String p1 = pass.substring(0,1);
    String p2 = pass.substring(1,2);
    String p3 = pass.substring(2,3);
    String p4 = pass.substring(3,4);

    if (p1.equals(p2) || p2.equals(p3) || p3.equals(p4)) {
       System.out.println("Bad");
       }
    else{
       System.out.println("Good");
       }    
  } Scanner sunuke = new Scanner(System.in); sunuke new Scanner(System.in) String pass = sunuke.next(); pass sunuke.next() sunuke.next sunuke String p1 = pass.substring(0,1); p1 pass.substring(0,1) pass.substring pass 0 1 String p2 = pass.substring(1,2); p2 pass.substring(1,2) pass.substring pass 1 2 String p3 = pass.substring(2,3); p3 pass.substring(2,3) pass.substring pass 2 3 String p4 = pass.substring(3,4); p4 pass.substring(3,4) pass.substring pass 3 4 if (p1.equals(p2) || p2.equals(p3) || p3.equals(p4)) {
       System.out.println("Bad");
       }
    else{
       System.out.println("Good");
       } p1.equals(p2) || p2.equals(p3) || p3.equals(p4) p1.equals(p2) || p2.equals(p3) || p3.equals(p4) p1.equals(p2) p1.equals p1 p2 p2.equals(p3) p2.equals p2 p3 p3.equals(p4) p3.equals p3 p4 {
       System.out.println("Bad");
       } System.out.println("Bad") System.out.println System.out System System.out "Bad" {
       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 sunuke = new Scanner(System.in);
    String pass = sunuke.next();
    
    String p1 = pass.substring(0,1);
    String p2 = pass.substring(1,2);
    String p3 = pass.substring(2,3);
    String p4 = pass.substring(3,4);

    if (p1.equals(p2) || p2.equals(p3) || p3.equals(p4)) {
       System.out.println("Bad");
       }
    else{
       System.out.println("Good");
       }    
  }
} public class Main{
  public static void main(String[] args){
    Scanner sunuke = new Scanner(System.in);
    String pass = sunuke.next();
    
    String p1 = pass.substring(0,1);
    String p2 = pass.substring(1,2);
    String p3 = pass.substring(2,3);
    String p4 = pass.substring(3,4);

    if (p1.equals(p2) || p2.equals(p3) || p3.equals(p4)) {
       System.out.println("Bad");
       }
    else{
       System.out.println("Good");
       }    
  }
} Main
import java.util.Scanner;
public class Main{
  public static void main(String[] args){
    Scanner sunuke = new Scanner(System.in);
    String pass = sunuke.next();
    
    String p1 = pass.substring(0,1);
    String p2 = pass.substring(1,2);
    String p3 = pass.substring(2,3);
    String p4 = pass.substring(3,4);

    if (p1.equals(p2) || p2.equals(p3) || p3.equals(p4)) {
       System.out.println("Bad");
       }
    else{
       System.out.println("Good");
       }    
  }
}