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

      String S = sc.next();
      char[] p = S.toCharArray();

  System.out.print(p[0]==p[1]||p[1]==p[2]||p[2]==p[3]?"Bad":"Good");

    }
} 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();
      char[] p = S.toCharArray();

  System.out.print(p[0]==p[1]||p[1]==p[2]||p[2]==p[3]?"Bad":"Good");

    }
} Main public static void main(String[] args) {
    
    Scanner sc = new Scanner(System.in);

      String S = sc.next();
      char[] p = S.toCharArray();

  System.out.print(p[0]==p[1]||p[1]==p[2]||p[2]==p[3]?"Bad":"Good");

    } main {
    
    Scanner sc = new Scanner(System.in);

      String S = sc.next();
      char[] p = S.toCharArray();

  System.out.print(p[0]==p[1]||p[1]==p[2]||p[2]==p[3]?"Bad":"Good");

    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S = sc.next(); S sc.next() sc.next sc char[] p = S.toCharArray(); p S.toCharArray() S.toCharArray S System.out.print(p[0]==p[1]||p[1]==p[2]||p[2]==p[3]?"Bad":"Good") System.out.print System.out System System.out p[0]==p[1]||p[1]==p[2]||p[2]==p[3]?"Bad":"Good" p[0]==p[1]||p[1]==p[2]||p[2]==p[3] p[0]==p[1]||p[1]==p[2]||p[2]==p[3] p[0]==p[1] p[0] p 0 p[1] p 1 p[1]==p[2] p[1] p 1 p[2] p 2 p[2]==p[3] p[2] p 2 p[3] p 3 "Bad" "Good" String[] args args public class Main {
    public static void main(String[] args) {
    
    Scanner sc = new Scanner(System.in);

      String S = sc.next();
      char[] p = S.toCharArray();

  System.out.print(p[0]==p[1]||p[1]==p[2]||p[2]==p[3]?"Bad":"Good");

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

      String S = sc.next();
      char[] p = S.toCharArray();

  System.out.print(p[0]==p[1]||p[1]==p[2]||p[2]==p[3]?"Bad":"Good");

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

      String S = sc.next();
      char[] p = S.toCharArray();

  System.out.print(p[0]==p[1]||p[1]==p[2]||p[2]==p[3]?"Bad":"Good");

    }
}