AtCoder Beginner Contest 131
A
Security
AtCoder
⌀ 0
原题
←B →
翻译中…

Problem Statement

翻译中…

The door of Snuke's laboratory is locked with a security code.

翻译中…

The security code is a $4$-digit number. We say the security code is hard to enter when it contains two consecutive digits that are the same.

翻译中…

You are given the current security code $S$. If $S$ is hard to enter, print Bad; otherwise, print Good.

翻译中…

Constraints

翻译中…
  • $S$ is a $4$-character string consisting of digits.
翻译中…

Input

翻译中…

Input is given from Standard Input in the following format:

翻译中…

S

翻译中…

Output

翻译中…

If $S$ is hard to enter, print Bad; otherwise, print Good.

翻译中…

样例

Input #1
3776
Output #1
Bad
The second and third digits are the same, so $3776$ is hard to enter.
Input #2
8080
Output #2
Good
There are no two consecutive digits that are the same, so $8080$ is not hard to enter.
Input #3
1333
Output #3
Bad
Input #4
0024
Output #4
Bad
题目信息
题号
abc131_a
时间限制
2 s
内存限制
1024 MB

题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。