import java.util.*;
import java.math.*;
public class Main
{
public static void main(String args[])
{
Scanner sc=new Scanner(System.in);
String s=sc.next();int f=0;
for(int i=0;i<3;i++)
{
if(s.charAt(i)==s.charAt(i+1))
{
f=1;
break;
}
}
if(f==1)
System.out.println("Bad");
else
System.out.println("Good");
}} import java.util.*; util.* java import java.math.*; math.* java public class Main
{
public static void main(String args[])
{
Scanner sc=new Scanner(System.in);
String s=sc.next();int f=0;
for(int i=0;i<3;i++)
{
if(s.charAt(i)==s.charAt(i+1))
{
f=1;
break;
}
}
if(f==1)
System.out.println("Bad");
else
System.out.println("Good");
}} Main public static void main(String args[])
{
Scanner sc=new Scanner(System.in);
String s=sc.next();int f=0;
for(int i=0;i<3;i++)
{
if(s.charAt(i)==s.charAt(i+1))
{
f=1;
break;
}
}
if(f==1)
System.out.println("Bad");
else
System.out.println("Good");
} main {
Scanner sc=new Scanner(System.in);
String s=sc.next();int f=0;
for(int i=0;i<3;i++)
{
if(s.charAt(i)==s.charAt(i+1))
{
f=1;
break;
}
}
if(f==1)
System.out.println("Bad");
else
System.out.println("Good");
} Scanner sc=new Scanner(System.in); sc new Scanner(System.in) String s=sc.next(); s sc.next() sc.next sc int f=0; f 0 for(int i=0;i<3;i++)
{
if(s.charAt(i)==s.charAt(i+1))
{
f=1;
break;
}
} int i=0; int i=0; i 0 i<3 i 3 i++ i++ i {
if(s.charAt(i)==s.charAt(i+1))
{
f=1;
break;
}
} {
if(s.charAt(i)==s.charAt(i+1))
{
f=1;
break;
}
} if(s.charAt(i)==s.charAt(i+1))
{
f=1;
break;
} 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 {
f=1;
break;
} f=1 f 1 break; if(f==1)
System.out.println("Bad");
else
System.out.println("Good"); f==1 f 1 System.out.println("Bad") System.out.println System.out System System.out "Bad" System.out.println("Good") System.out.println System.out System System.out "Good" String args[] args public class Main
{
public static void main(String args[])
{
Scanner sc=new Scanner(System.in);
String s=sc.next();int f=0;
for(int i=0;i<3;i++)
{
if(s.charAt(i)==s.charAt(i+1))
{
f=1;
break;
}
}
if(f==1)
System.out.println("Bad");
else
System.out.println("Good");
}} public class Main
{
public static void main(String args[])
{
Scanner sc=new Scanner(System.in);
String s=sc.next();int f=0;
for(int i=0;i<3;i++)
{
if(s.charAt(i)==s.charAt(i+1))
{
f=1;
break;
}
}
if(f==1)
System.out.println("Bad");
else
System.out.println("Good");
}} Main
import java.util.*;
import java.math.*;
public class Main
{
public static void main(String args[])
{
Scanner sc=new Scanner(System.in);
String s=sc.next();int f=0;
for(int i=0;i<3;i++)
{
if(s.charAt(i)==s.charAt(i+1))
{
f=1;
break;
}
}
if(f==1)
System.out.println("Bad");
else
System.out.println("Good");
}}