#include<cstdio>
#define MOD 7
int main(){
int one, two, three, four, five, six, seven, eight, nine, ten;
scanf("%1d%1d%1d%1d%1d%1d%1d%1d%1d%1d", &one, &two, &three, &four, &five, &six, &seven, &eight, &nine, &ten);
int sum;
sum = one + two + three + four + five + six + seven + eight + nine + ten;
if(sum % MOD == 4){
printf("Bad");}else{printf("Good");}
return 0;
}
a = input()
a = int(a)
f = 1
while(a != 0) :
f = f * a
a -= 1
print(f)
s = input()
print(len(s))
n = input()
n = int(n)
print(n '')
a, b = input().split()
a = int(a)
b = int(b)
while a % b != 0 :
a, b = b, a % b
print(b)
n = ord(input())
print(n)
c = int(input())
print(chr(c))
n = input()
n = int(n)
print(-n)