import java.util.Scanner;
 
public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System. in);
    String passWord = sc.next();
    String ans = "";

    for (int i=0; i < passWord.length()-1; i++) {
      if (passWord.substring(i, i + 1).equals(passWord.substring(i+1, i+2))) {
        ans = "Bad";
        break;
      } else {
        ans = "Good";
      }
    }

    System.out.println(ans);
  }
} import java.util.Scanner; Scanner java.util public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System. in);
    String passWord = sc.next();
    String ans = "";

    for (int i=0; i < passWord.length()-1; i++) {
      if (passWord.substring(i, i + 1).equals(passWord.substring(i+1, i+2))) {
        ans = "Bad";
        break;
      } else {
        ans = "Good";
      }
    }

    System.out.println(ans);
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System. in);
    String passWord = sc.next();
    String ans = "";

    for (int i=0; i < passWord.length()-1; i++) {
      if (passWord.substring(i, i + 1).equals(passWord.substring(i+1, i+2))) {
        ans = "Bad";
        break;
      } else {
        ans = "Good";
      }
    }

    System.out.println(ans);
  } main {
    Scanner sc = new Scanner(System. in);
    String passWord = sc.next();
    String ans = "";

    for (int i=0; i < passWord.length()-1; i++) {
      if (passWord.substring(i, i + 1).equals(passWord.substring(i+1, i+2))) {
        ans = "Bad";
        break;
      } else {
        ans = "Good";
      }
    }

    System.out.println(ans);
  } Scanner sc = new Scanner(System. in); sc new Scanner(System. in) String passWord = sc.next(); passWord sc.next() sc.next sc String ans = ""; ans "" for (int i=0; i < passWord.length()-1; i++) {
      if (passWord.substring(i, i + 1).equals(passWord.substring(i+1, i+2))) {
        ans = "Bad";
        break;
      } else {
        ans = "Good";
      }
    } int i=0; int i=0; i 0 i < passWord.length()-1 i passWord.length()-1 passWord.length() passWord.length passWord 1 i++ i++ i {
      if (passWord.substring(i, i + 1).equals(passWord.substring(i+1, i+2))) {
        ans = "Bad";
        break;
      } else {
        ans = "Good";
      }
    } {
      if (passWord.substring(i, i + 1).equals(passWord.substring(i+1, i+2))) {
        ans = "Bad";
        break;
      } else {
        ans = "Good";
      }
    } if (passWord.substring(i, i + 1).equals(passWord.substring(i+1, i+2))) {
        ans = "Bad";
        break;
      } else {
        ans = "Good";
      } passWord.substring(i, i + 1).equals(passWord.substring(i+1, i+2)) passWord.substring(i, i + 1).equals passWord.substring(i, i + 1) passWord.substring passWord i i + 1 i 1 passWord.substring(i+1, i+2) passWord.substring passWord i+1 i 1 i+2 i 2 {
        ans = "Bad";
        break;
      } ans = "Bad" ans "Bad" break; {
        ans = "Good";
      } ans = "Good" ans "Good" System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System. in);
    String passWord = sc.next();
    String ans = "";

    for (int i=0; i < passWord.length()-1; i++) {
      if (passWord.substring(i, i + 1).equals(passWord.substring(i+1, i+2))) {
        ans = "Bad";
        break;
      } else {
        ans = "Good";
      }
    }

    System.out.println(ans);
  }
} public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System. in);
    String passWord = sc.next();
    String ans = "";

    for (int i=0; i < passWord.length()-1; i++) {
      if (passWord.substring(i, i + 1).equals(passWord.substring(i+1, i+2))) {
        ans = "Bad";
        break;
      } else {
        ans = "Good";
      }
    }

    System.out.println(ans);
  }
} Main
import java.util.Scanner;
 
public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System. in);
    String passWord = sc.next();
    String ans = "";

    for (int i=0; i < passWord.length()-1; i++) {
      if (passWord.substring(i, i + 1).equals(passWord.substring(i+1, i+2))) {
        ans = "Bad";
        break;
      } else {
        ans = "Good";
      }
    }

    System.out.println(ans);
  }
}
