Help me in solving CHFINTRO problem

My issue

My code

n=int(input())
x=int(input())
while n!=0:
    d=int(input())
    if d<x:
        print("Bad boi")
    else:
        print("Good boi")
    n=n-1    

Problem Link: CHFINTRO Problem - CodeChef