import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        String str[] =S.split(""); 
        int sum = 0;
        for(int i=0;i<3;i++)
        {
            if(str[i].equals(str[i+1]))
            {
                sum++;
            }
        }
        if(sum == 0)
        {
            System.out.println("Good");
        }
        else System.out.println("Bad");
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        String str[] =S.split(""); 
        int sum = 0;
        for(int i=0;i<3;i++)
        {
            if(str[i].equals(str[i+1]))
            {
                sum++;
            }
        }
        if(sum == 0)
        {
            System.out.println("Good");
        }
        else System.out.println("Bad");
    }
} Main public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        String str[] =S.split(""); 
        int sum = 0;
        for(int i=0;i<3;i++)
        {
            if(str[i].equals(str[i+1]))
            {
                sum++;
            }
        }
        if(sum == 0)
        {
            System.out.println("Good");
        }
        else System.out.println("Bad");
    } main {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        String str[] =S.split(""); 
        int sum = 0;
        for(int i=0;i<3;i++)
        {
            if(str[i].equals(str[i+1]))
            {
                sum++;
            }
        }
        if(sum == 0)
        {
            System.out.println("Good");
        }
        else System.out.println("Bad");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S = sc.next(); S sc.next() sc.next sc String str[] =S.split(""); str S.split("") S.split S "" int sum = 0; sum 0 for(int i=0;i<3;i++)
        {
            if(str[i].equals(str[i+1]))
            {
                sum++;
            }
        } int i=0; int i=0; i 0 i<3 i 3 i++ i++ i {
            if(str[i].equals(str[i+1]))
            {
                sum++;
            }
        } {
            if(str[i].equals(str[i+1]))
            {
                sum++;
            }
        } if(str[i].equals(str[i+1]))
            {
                sum++;
            } str[i].equals(str[i+1]) str[i].equals str[i] str i str[i+1] str i+1 i 1 {
                sum++;
            } sum++ sum if(sum == 0)
        {
            System.out.println("Good");
        }
        else System.out.println("Bad"); sum == 0 sum 0 {
            System.out.println("Good");
        } System.out.println("Good") System.out.println System.out System System.out "Good" System.out.println("Bad") System.out.println System.out System System.out "Bad" String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        String str[] =S.split(""); 
        int sum = 0;
        for(int i=0;i<3;i++)
        {
            if(str[i].equals(str[i+1]))
            {
                sum++;
            }
        }
        if(sum == 0)
        {
            System.out.println("Good");
        }
        else System.out.println("Bad");
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        String str[] =S.split(""); 
        int sum = 0;
        for(int i=0;i<3;i++)
        {
            if(str[i].equals(str[i+1]))
            {
                sum++;
            }
        }
        if(sum == 0)
        {
            System.out.println("Good");
        }
        else System.out.println("Bad");
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        String str[] =S.split(""); 
        int sum = 0;
        for(int i=0;i<3;i++)
        {
            if(str[i].equals(str[i+1]))
            {
                sum++;
            }
        }
        if(sum == 0)
        {
            System.out.println("Good");
        }
        else System.out.println("Bad");
    }
}
