import java.util.Scanner;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String X = sc.nextLine();
    char[] num = new char[4];
    boolean judge = true;

    for(int i = 0; i < 4; i++) {
    	num[i] = X.charAt(i);
    }

    for(int i = 0; i < 3; i++) {
    	if(num[i] == num[i+1]) {
    		judge = false;
    		break;
    	}
    }

    if(judge) {
    	System.out.println("Good");
    } else {
    	System.out.println("Bad");
    }
  }
} import java.util.Scanner; Scanner java.util public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String X = sc.nextLine();
    char[] num = new char[4];
    boolean judge = true;

    for(int i = 0; i < 4; i++) {
    	num[i] = X.charAt(i);
    }

    for(int i = 0; i < 3; i++) {
    	if(num[i] == num[i+1]) {
    		judge = false;
    		break;
    	}
    }

    if(judge) {
    	System.out.println("Good");
    } else {
    	System.out.println("Bad");
    }
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String X = sc.nextLine();
    char[] num = new char[4];
    boolean judge = true;

    for(int i = 0; i < 4; i++) {
    	num[i] = X.charAt(i);
    }

    for(int i = 0; i < 3; i++) {
    	if(num[i] == num[i+1]) {
    		judge = false;
    		break;
    	}
    }

    if(judge) {
    	System.out.println("Good");
    } else {
    	System.out.println("Bad");
    }
  } main {
    Scanner sc = new Scanner(System.in);
    String X = sc.nextLine();
    char[] num = new char[4];
    boolean judge = true;

    for(int i = 0; i < 4; i++) {
    	num[i] = X.charAt(i);
    }

    for(int i = 0; i < 3; i++) {
    	if(num[i] == num[i+1]) {
    		judge = false;
    		break;
    	}
    }

    if(judge) {
    	System.out.println("Good");
    } else {
    	System.out.println("Bad");
    }
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String X = sc.nextLine(); X sc.nextLine() sc.nextLine sc char[] num = new char[4]; num new char[4] 4 boolean judge = true; judge true for(int i = 0; i < 4; i++) {
    	num[i] = X.charAt(i);
    } int i = 0; int i = 0; i 0 i < 4 i 4 i++ i++ i {
    	num[i] = X.charAt(i);
    } {
    	num[i] = X.charAt(i);
    } num[i] = X.charAt(i) num[i] num i X.charAt(i) X.charAt X i for(int i = 0; i < 3; i++) {
    	if(num[i] == num[i+1]) {
    		judge = false;
    		break;
    	}
    } int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
    	if(num[i] == num[i+1]) {
    		judge = false;
    		break;
    	}
    } {
    	if(num[i] == num[i+1]) {
    		judge = false;
    		break;
    	}
    } if(num[i] == num[i+1]) {
    		judge = false;
    		break;
    	} num[i] == num[i+1] num[i] num i num[i+1] num i+1 i 1 {
    		judge = false;
    		break;
    	} judge = false judge false break; if(judge) {
    	System.out.println("Good");
    } else {
    	System.out.println("Bad");
    } judge {
    	System.out.println("Good");
    } System.out.println("Good") System.out.println System.out System System.out "Good" {
    	System.out.println("Bad");
    } 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) {
    Scanner sc = new Scanner(System.in);
    String X = sc.nextLine();
    char[] num = new char[4];
    boolean judge = true;

    for(int i = 0; i < 4; i++) {
    	num[i] = X.charAt(i);
    }

    for(int i = 0; i < 3; i++) {
    	if(num[i] == num[i+1]) {
    		judge = false;
    		break;
    	}
    }

    if(judge) {
    	System.out.println("Good");
    } else {
    	System.out.println("Bad");
    }
  }
} public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String X = sc.nextLine();
    char[] num = new char[4];
    boolean judge = true;

    for(int i = 0; i < 4; i++) {
    	num[i] = X.charAt(i);
    }

    for(int i = 0; i < 3; i++) {
    	if(num[i] == num[i+1]) {
    		judge = false;
    		break;
    	}
    }

    if(judge) {
    	System.out.println("Good");
    } else {
    	System.out.println("Bad");
    }
  }
} Main
import java.util.Scanner;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String X = sc.nextLine();
    char[] num = new char[4];
    boolean judge = true;

    for(int i = 0; i < 4; i++) {
    	num[i] = X.charAt(i);
    }

    for(int i = 0; i < 3; i++) {
    	if(num[i] == num[i+1]) {
    		judge = false;
    		break;
    	}
    }

    if(judge) {
    	System.out.println("Good");
    } else {
    	System.out.println("Bad");
    }
  }
}