import java.util.Scanner;

class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String N = sc.next();
        String[] array = N.split("");
        boolean ans = false;
        
        for(int i = 0 ; i < 3;i++) {
        	if(array[i].equals(array[i+1])) {
        		ans = true;
        		break;
        	}
        }
       System.out.println(ans?"Bad":"Good");
    }
} import java.util.Scanner; Scanner java.util class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String N = sc.next();
        String[] array = N.split("");
        boolean ans = false;
        
        for(int i = 0 ; i < 3;i++) {
        	if(array[i].equals(array[i+1])) {
        		ans = true;
        		break;
        	}
        }
       System.out.println(ans?"Bad":"Good");
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String N = sc.next();
        String[] array = N.split("");
        boolean ans = false;
        
        for(int i = 0 ; i < 3;i++) {
        	if(array[i].equals(array[i+1])) {
        		ans = true;
        		break;
        	}
        }
       System.out.println(ans?"Bad":"Good");
    } main {
        Scanner sc = new Scanner(System.in);
        String N = sc.next();
        String[] array = N.split("");
        boolean ans = false;
        
        for(int i = 0 ; i < 3;i++) {
        	if(array[i].equals(array[i+1])) {
        		ans = true;
        		break;
        	}
        }
       System.out.println(ans?"Bad":"Good");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String N = sc.next(); N sc.next() sc.next sc String[] array = N.split(""); array N.split("") N.split N "" boolean ans = false; ans false for(int i = 0 ; i < 3;i++) {
        	if(array[i].equals(array[i+1])) {
        		ans = true;
        		break;
        	}
        } int i = 0 ; int i = 0 ; i 0 i < 3 i 3 i++ i++ i {
        	if(array[i].equals(array[i+1])) {
        		ans = true;
        		break;
        	}
        } {
        	if(array[i].equals(array[i+1])) {
        		ans = true;
        		break;
        	}
        } if(array[i].equals(array[i+1])) {
        		ans = true;
        		break;
        	} array[i].equals(array[i+1]) array[i].equals array[i] array i array[i+1] array i+1 i 1 {
        		ans = true;
        		break;
        	} ans = true ans true break; System.out.println(ans?"Bad":"Good") System.out.println System.out System System.out ans?"Bad":"Good" ans "Bad" "Good" String[] args args
import java.util.Scanner;

class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String N = sc.next();
        String[] array = N.split("");
        boolean ans = false;
        
        for(int i = 0 ; i < 3;i++) {
        	if(array[i].equals(array[i+1])) {
        		ans = true;
        		break;
        	}
        }
       System.out.println(ans?"Bad":"Good");
    }
}