import java.util.Scanner;

public class Main {
  public static void main (String[] args) {
    Scanner in = new Scanner(System.in);

    while (in.hasNext()) {
      String S = in.next();
      boolean isGood = true;
   
      for (int i = 1; i < S.length(); ++i) {
        if (S.charAt(i) == S.charAt(i - 1)) {
          isGood = false;
        }
      }
      
      if (isGood) {
        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 in = new Scanner(System.in);

    while (in.hasNext()) {
      String S = in.next();
      boolean isGood = true;
   
      for (int i = 1; i < S.length(); ++i) {
        if (S.charAt(i) == S.charAt(i - 1)) {
          isGood = false;
        }
      }
      
      if (isGood) {
        System.out.println("Good");
      } else {
        System.out.println("Bad");
      }
    }
  }
} Main public static void main (String[] args) {
    Scanner in = new Scanner(System.in);

    while (in.hasNext()) {
      String S = in.next();
      boolean isGood = true;
   
      for (int i = 1; i < S.length(); ++i) {
        if (S.charAt(i) == S.charAt(i - 1)) {
          isGood = false;
        }
      }
      
      if (isGood) {
        System.out.println("Good");
      } else {
        System.out.println("Bad");
      }
    }
  } main {
    Scanner in = new Scanner(System.in);

    while (in.hasNext()) {
      String S = in.next();
      boolean isGood = true;
   
      for (int i = 1; i < S.length(); ++i) {
        if (S.charAt(i) == S.charAt(i - 1)) {
          isGood = false;
        }
      }
      
      if (isGood) {
        System.out.println("Good");
      } else {
        System.out.println("Bad");
      }
    }
  } Scanner in = new Scanner(System.in); in new Scanner(System.in) while (in.hasNext()) {
      String S = in.next();
      boolean isGood = true;
   
      for (int i = 1; i < S.length(); ++i) {
        if (S.charAt(i) == S.charAt(i - 1)) {
          isGood = false;
        }
      }
      
      if (isGood) {
        System.out.println("Good");
      } else {
        System.out.println("Bad");
      }
    } in.hasNext() in.hasNext in {
      String S = in.next();
      boolean isGood = true;
   
      for (int i = 1; i < S.length(); ++i) {
        if (S.charAt(i) == S.charAt(i - 1)) {
          isGood = false;
        }
      }
      
      if (isGood) {
        System.out.println("Good");
      } else {
        System.out.println("Bad");
      }
    } String S = in.next(); S in.next() in.next in boolean isGood = true; isGood true for (int i = 1; i < S.length(); ++i) {
        if (S.charAt(i) == S.charAt(i - 1)) {
          isGood = false;
        }
      } int i = 1; int i = 1; i 1 i < S.length() i S.length() S.length S ++i ++i i {
        if (S.charAt(i) == S.charAt(i - 1)) {
          isGood = false;
        }
      } {
        if (S.charAt(i) == S.charAt(i - 1)) {
          isGood = false;
        }
      } if (S.charAt(i) == S.charAt(i - 1)) {
          isGood = false;
        } S.charAt(i) == S.charAt(i - 1) S.charAt(i) S.charAt S i S.charAt(i - 1) S.charAt S i - 1 i 1 {
          isGood = false;
        } isGood = false isGood false if (isGood) {
        System.out.println("Good");
      } else {
        System.out.println("Bad");
      } isGood {
        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 in = new Scanner(System.in);

    while (in.hasNext()) {
      String S = in.next();
      boolean isGood = true;
   
      for (int i = 1; i < S.length(); ++i) {
        if (S.charAt(i) == S.charAt(i - 1)) {
          isGood = false;
        }
      }
      
      if (isGood) {
        System.out.println("Good");
      } else {
        System.out.println("Bad");
      }
    }
  }
} public class Main {
  public static void main (String[] args) {
    Scanner in = new Scanner(System.in);

    while (in.hasNext()) {
      String S = in.next();
      boolean isGood = true;
   
      for (int i = 1; i < S.length(); ++i) {
        if (S.charAt(i) == S.charAt(i - 1)) {
          isGood = false;
        }
      }
      
      if (isGood) {
        System.out.println("Good");
      } else {
        System.out.println("Bad");
      }
    }
  }
} Main
import java.util.Scanner;

public class Main {
  public static void main (String[] args) {
    Scanner in = new Scanner(System.in);

    while (in.hasNext()) {
      String S = in.next();
      boolean isGood = true;
   
      for (int i = 1; i < S.length(); ++i) {
        if (S.charAt(i) == S.charAt(i - 1)) {
          isGood = false;
        }
      }
      
      if (isGood) {
        System.out.println("Good");
      } else {
        System.out.println("Bad");
      }
    }
  }
}