import java.util.Scanner;

public class Main {

    public static void main(String args[]) {
        Scanner scan = new Scanner(System.in);
        String[] p = scan.next().split("");
        for (int i = 1; i <= 3; i++) {
            if (p[i - 1].equals(p[i])) {
                System.out.println("Bad");
                break;
            }
          if(i==3)
                  System.out.println("Good");
        }

    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String args[]) {
        Scanner scan = new Scanner(System.in);
        String[] p = scan.next().split("");
        for (int i = 1; i <= 3; i++) {
            if (p[i - 1].equals(p[i])) {
                System.out.println("Bad");
                break;
            }
          if(i==3)
                  System.out.println("Good");
        }

    }
} Main public static void main(String args[]) {
        Scanner scan = new Scanner(System.in);
        String[] p = scan.next().split("");
        for (int i = 1; i <= 3; i++) {
            if (p[i - 1].equals(p[i])) {
                System.out.println("Bad");
                break;
            }
          if(i==3)
                  System.out.println("Good");
        }

    } main {
        Scanner scan = new Scanner(System.in);
        String[] p = scan.next().split("");
        for (int i = 1; i <= 3; i++) {
            if (p[i - 1].equals(p[i])) {
                System.out.println("Bad");
                break;
            }
          if(i==3)
                  System.out.println("Good");
        }

    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String[] p = scan.next().split(""); p scan.next().split("") scan.next().split scan.next() scan.next scan "" for (int i = 1; i <= 3; i++) {
            if (p[i - 1].equals(p[i])) {
                System.out.println("Bad");
                break;
            }
          if(i==3)
                  System.out.println("Good");
        } int i = 1; int i = 1; i 1 i <= 3 i 3 i++ i++ i {
            if (p[i - 1].equals(p[i])) {
                System.out.println("Bad");
                break;
            }
          if(i==3)
                  System.out.println("Good");
        } {
            if (p[i - 1].equals(p[i])) {
                System.out.println("Bad");
                break;
            }
          if(i==3)
                  System.out.println("Good");
        } if (p[i - 1].equals(p[i])) {
                System.out.println("Bad");
                break;
            } p[i - 1].equals(p[i]) p[i - 1].equals p[i - 1] p i - 1 i 1 p[i] p i {
                System.out.println("Bad");
                break;
            } System.out.println("Bad") System.out.println System.out System System.out "Bad" break; if(i==3)
                  System.out.println("Good"); i==3 i 3 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 scan = new Scanner(System.in);
        String[] p = scan.next().split("");
        for (int i = 1; i <= 3; i++) {
            if (p[i - 1].equals(p[i])) {
                System.out.println("Bad");
                break;
            }
          if(i==3)
                  System.out.println("Good");
        }

    }
} public class Main {

    public static void main(String args[]) {
        Scanner scan = new Scanner(System.in);
        String[] p = scan.next().split("");
        for (int i = 1; i <= 3; i++) {
            if (p[i - 1].equals(p[i])) {
                System.out.println("Bad");
                break;
            }
          if(i==3)
                  System.out.println("Good");
        }

    }
} Main
import java.util.Scanner;

public class Main {

    public static void main(String args[]) {
        Scanner scan = new Scanner(System.in);
        String[] p = scan.next().split("");
        for (int i = 1; i <= 3; i++) {
            if (p[i - 1].equals(p[i])) {
                System.out.println("Bad");
                break;
            }
          if(i==3)
                  System.out.println("Good");
        }

    }
}