This is the code I used after playing with it.
par = int(input())
strokes = int(input())
if par not in range(3,6) :
print('Error')
elif par - strokes == 2:
print('Eagle')
elif par - strokes == 1:
print('Birdie')
elif par == strokes:
print('Par')
elif strokes - par == 1:
print('Bogey')