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

        int before = 0;
        before = security_code.codePointAt(0);
        for(int p = 1; p < 4; p++) {
          if (before == security_code.codePointAt(p)) {
            System.out.println("Bad");
            return;
            }
          before = security_code.codePointAt(p);
          }
        System.out.println("Good");
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String security_code = scanner.nextLine();

        int before = 0;
        before = security_code.codePointAt(0);
        for(int p = 1; p < 4; p++) {
          if (before == security_code.codePointAt(p)) {
            System.out.println("Bad");
            return;
            }
          before = security_code.codePointAt(p);
          }
        System.out.println("Good");
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String security_code = scanner.nextLine();

        int before = 0;
        before = security_code.codePointAt(0);
        for(int p = 1; p < 4; p++) {
          if (before == security_code.codePointAt(p)) {
            System.out.println("Bad");
            return;
            }
          before = security_code.codePointAt(p);
          }
        System.out.println("Good");
    } main {
        Scanner scanner = new Scanner(System.in);
        String security_code = scanner.nextLine();

        int before = 0;
        before = security_code.codePointAt(0);
        for(int p = 1; p < 4; p++) {
          if (before == security_code.codePointAt(p)) {
            System.out.println("Bad");
            return;
            }
          before = security_code.codePointAt(p);
          }
        System.out.println("Good");
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String security_code = scanner.nextLine(); security_code scanner.nextLine() scanner.nextLine scanner int before = 0; before 0 before = security_code.codePointAt(0) before security_code.codePointAt(0) security_code.codePointAt security_code 0 for(int p = 1; p < 4; p++) {
          if (before == security_code.codePointAt(p)) {
            System.out.println("Bad");
            return;
            }
          before = security_code.codePointAt(p);
          } int p = 1; int p = 1; p 1 p < 4 p 4 p++ p++ p {
          if (before == security_code.codePointAt(p)) {
            System.out.println("Bad");
            return;
            }
          before = security_code.codePointAt(p);
          } {
          if (before == security_code.codePointAt(p)) {
            System.out.println("Bad");
            return;
            }
          before = security_code.codePointAt(p);
          } if (before == security_code.codePointAt(p)) {
            System.out.println("Bad");
            return;
            } before == security_code.codePointAt(p) before security_code.codePointAt(p) security_code.codePointAt security_code p {
            System.out.println("Bad");
            return;
            } System.out.println("Bad") System.out.println System.out System System.out "Bad" return; before = security_code.codePointAt(p) before security_code.codePointAt(p) security_code.codePointAt security_code p 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 scanner = new Scanner(System.in);
        String security_code = scanner.nextLine();

        int before = 0;
        before = security_code.codePointAt(0);
        for(int p = 1; p < 4; p++) {
          if (before == security_code.codePointAt(p)) {
            System.out.println("Bad");
            return;
            }
          before = security_code.codePointAt(p);
          }
        System.out.println("Good");
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String security_code = scanner.nextLine();

        int before = 0;
        before = security_code.codePointAt(0);
        for(int p = 1; p < 4; p++) {
          if (before == security_code.codePointAt(p)) {
            System.out.println("Bad");
            return;
            }
          before = security_code.codePointAt(p);
          }
        System.out.println("Good");
    }
} Main
import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String security_code = scanner.nextLine();

        int before = 0;
        before = security_code.codePointAt(0);
        for(int p = 1; p < 4; p++) {
          if (before == security_code.codePointAt(p)) {
            System.out.println("Bad");
            return;
            }
          before = security_code.codePointAt(p);
          }
        System.out.println("Good");
    }
}