using System;
public class Program
{
/*
קולטת שני מספרים
אם המספרים זוגגם וגם סכומם מתחלק ב3 ללא שארית
מדפיס GOOD
אחרת מדפיס BAD
*/
public static void Main()
int x , y;
x=int.Parse(Console.ReadLine());
y=int.Parse(Console.ReadLine());
if (x%2==0 && y%2==0 && (y+x)%3==0)
Console.WriteLine("Good");
else
Console.WriteLine("Bad");
}