As the President of MCPT, Emily needs to plan out the dates for lots of meetings. However, the school calendar is filled with events on the dates , , ... , and the members of MCPT will get very unhappy if she schedules a conflict. The MCPT timetable needs to have meetings on the dates , , ... , and Emily needs to finish planning it before it is too late! Can you tell Emily whether one of her meetings conflicts with an event from the school calendar?
Input Specification
The first line of input will contain two integers and , the number of school events and MCPT meetings, respectively.
The next line will contain space-separated integers, , , , the dates of the school events.
The next line will contain space-separated integers, , , , the dates of the MCPT meetings.
Output Specification
For every MCPT meeting, print Good
if the meeting doesn't conflict with any events, or baf
if it does, on its own line.
Sample Input
4 4
1 2 3 9
1 2 5 9
Sample Output
baf
baf
Good
baf
Subtasks
Subtask 1 [30%]
Subtask 2 [70%]
No further constraints.
Comments