import java.util.*;

class Main
{
    public static  void main(String[] args)
    {
        Scanner sc = new Scanner(System.in);
        
        String s = sc.next();
        String[] array = new String[4];
        
        for (int i = 0; i < 4; i++) {
            array[i] = s.substring(i, i + 1);
        }
        
        //Arrays.sort(array);
        int count = 0;
        
        for (int i = 0; i < 3; i++) {
            if (array[i].equals(array[i + 1])) {
                count++;
            }
        }
        
        if (count != 0) {
            System.out.println("Bad");
        } else {
            System.out.println("Good");
        }
        
    }
} import java.util.*; util.* java class Main
{
    public static  void main(String[] args)
    {
        Scanner sc = new Scanner(System.in);
        
        String s = sc.next();
        String[] array = new String[4];
        
        for (int i = 0; i < 4; i++) {
            array[i] = s.substring(i, i + 1);
        }
        
        //Arrays.sort(array);
        int count = 0;
        
        for (int i = 0; i < 3; i++) {
            if (array[i].equals(array[i + 1])) {
                count++;
            }
        }
        
        if (count != 0) {
            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.next();
        String[] array = new String[4];
        
        for (int i = 0; i < 4; i++) {
            array[i] = s.substring(i, i + 1);
        }
        
        //Arrays.sort(array);
        int count = 0;
        
        for (int i = 0; i < 3; i++) {
            if (array[i].equals(array[i + 1])) {
                count++;
            }
        }
        
        if (count != 0) {
            System.out.println("Bad");
        } else {
            System.out.println("Good");
        }
        
    } main {
        Scanner sc = new Scanner(System.in);
        
        String s = sc.next();
        String[] array = new String[4];
        
        for (int i = 0; i < 4; i++) {
            array[i] = s.substring(i, i + 1);
        }
        
        //Arrays.sort(array);
        int count = 0;
        
        for (int i = 0; i < 3; i++) {
            if (array[i].equals(array[i + 1])) {
                count++;
            }
        }
        
        if (count != 0) {
            System.out.println("Bad");
        } else {
            System.out.println("Good");
        }
        
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc String[] array = new String[4]; array new String[4] 4 for (int i = 0; i < 4; i++) {
            array[i] = s.substring(i, i + 1);
        } int i = 0; int i = 0; i 0 i < 4 i 4 i++ i++ i {
            array[i] = s.substring(i, i + 1);
        } {
            array[i] = s.substring(i, i + 1);
        } array[i] = s.substring(i, i + 1) array[i] array i s.substring(i, i + 1) s.substring s i i + 1 i 1 int count = 0; count 0 for (int i = 0; i < 3; i++) {
            if (array[i].equals(array[i + 1])) {
                count++;
            }
        } int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
            if (array[i].equals(array[i + 1])) {
                count++;
            }
        } {
            if (array[i].equals(array[i + 1])) {
                count++;
            }
        } if (array[i].equals(array[i + 1])) {
                count++;
            } array[i].equals(array[i + 1]) array[i].equals array[i] array i array[i + 1] array i + 1 i 1 {
                count++;
            } count++ count if (count != 0) {
            System.out.println("Bad");
        } else {
            System.out.println("Good");
        } count != 0 count 0 {
            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
import java.util.*;

class Main
{
    public static  void main(String[] args)
    {
        Scanner sc = new Scanner(System.in);
        
        String s = sc.next();
        String[] array = new String[4];
        
        for (int i = 0; i < 4; i++) {
            array[i] = s.substring(i, i + 1);
        }
        
        //Arrays.sort(array);
        int count = 0;
        
        for (int i = 0; i < 3; i++) {
            if (array[i].equals(array[i + 1])) {
                count++;
            }
        }
        
        if (count != 0) {
            System.out.println("Bad");
        } else {
            System.out.println("Good");
        }
        
    }
}