import java.util.Scanner;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		
		String str = sc.next();
		String regex = "(.)\\1{1}";
		
		Pattern p = Pattern.compile(regex);
		Matcher m = p.matcher(str);

		System.out.println(m.find() ? "Bad" : "Good");
	}
} import java.util.Scanner; Scanner java.util import java.util.regex.Matcher; Matcher java.util.regex import java.util.regex.Pattern; Pattern java.util.regex public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		
		String str = sc.next();
		String regex = "(.)\\1{1}";
		
		Pattern p = Pattern.compile(regex);
		Matcher m = p.matcher(str);

		System.out.println(m.find() ? "Bad" : "Good");
	}
} Main public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		
		String str = sc.next();
		String regex = "(.)\\1{1}";
		
		Pattern p = Pattern.compile(regex);
		Matcher m = p.matcher(str);

		System.out.println(m.find() ? "Bad" : "Good");
	} main {

		Scanner sc = new Scanner(System.in);
		
		String str = sc.next();
		String regex = "(.)\\1{1}";
		
		Pattern p = Pattern.compile(regex);
		Matcher m = p.matcher(str);

		System.out.println(m.find() ? "Bad" : "Good");
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String str = sc.next(); str sc.next() sc.next sc String regex = "(.)\\1{1}"; regex "(.)\\1{1}" Pattern p = Pattern.compile(regex); p Pattern.compile(regex) Pattern.compile Pattern regex Matcher m = p.matcher(str); m p.matcher(str) p.matcher p str System.out.println(m.find() ? "Bad" : "Good") System.out.println System.out System System.out m.find() ? "Bad" : "Good" m.find() m.find m "Bad" "Good" String[] args args public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		
		String str = sc.next();
		String regex = "(.)\\1{1}";
		
		Pattern p = Pattern.compile(regex);
		Matcher m = p.matcher(str);

		System.out.println(m.find() ? "Bad" : "Good");
	}
} public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		
		String str = sc.next();
		String regex = "(.)\\1{1}";
		
		Pattern p = Pattern.compile(regex);
		Matcher m = p.matcher(str);

		System.out.println(m.find() ? "Bad" : "Good");
	}
} Main
import java.util.Scanner;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		
		String str = sc.next();
		String regex = "(.)\\1{1}";
		
		Pattern p = Pattern.compile(regex);
		Matcher m = p.matcher(str);

		System.out.println(m.find() ? "Bad" : "Good");
	}
}