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

        if(array[0]==array[1] || array[1]==array[2] || array[2]==array[3]){
            System.out.println("Bad");
        }else{
            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 s = sc.nextLine();
        char array[] = s.toCharArray();

        if(array[0]==array[1] || array[1]==array[2] || array[2]==array[3]){
            System.out.println("Bad");
        }else{
            System.out.println("Good");
        }

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

        if(array[0]==array[1] || array[1]==array[2] || array[2]==array[3]){
            System.out.println("Bad");
        }else{
            System.out.println("Good");
        }

    } main {
        Scanner sc = new Scanner(System.in);
        String s = sc.nextLine();
        char array[] = s.toCharArray();

        if(array[0]==array[1] || array[1]==array[2] || array[2]==array[3]){
            System.out.println("Bad");
        }else{
            System.out.println("Good");
        }

    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.nextLine(); s sc.nextLine() sc.nextLine sc char array[] = s.toCharArray(); array s.toCharArray() s.toCharArray s if(array[0]==array[1] || array[1]==array[2] || array[2]==array[3]){
            System.out.println("Bad");
        }else{
            System.out.println("Good");
        } array[0]==array[1] || array[1]==array[2] || array[2]==array[3] array[0]==array[1] || array[1]==array[2] || array[2]==array[3] array[0]==array[1] array[0] array 0 array[1] array 1 array[1]==array[2] array[1] array 1 array[2] array 2 array[2]==array[3] array[2] array 2 array[3] array 3 {
            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 sc = new Scanner(System.in);
        String s = sc.nextLine();
        char array[] = s.toCharArray();

        if(array[0]==array[1] || array[1]==array[2] || array[2]==array[3]){
            System.out.println("Bad");
        }else{
            System.out.println("Good");
        }

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

        if(array[0]==array[1] || array[1]==array[2] || array[2]==array[3]){
            System.out.println("Bad");
        }else{
            System.out.println("Good");
        }

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

        if(array[0]==array[1] || array[1]==array[2] || array[2]==array[3]){
            System.out.println("Bad");
        }else{
            System.out.println("Good");
        }

    }
}