Help me in solving DOREWARD problem

My issue

My output is correct but i dont know why it is showing wrong after submitting. pls correct code

My code

#include<stdio.h>
int main()
{
    int i, T;
    scanf("%d",&T);
    
    for(i=0; i<T; i++)
    {
        int X;
        scanf("%d", &X);
        
        if (X<=3)
        {
            printf("BRONZE\n");
        }
        
        else if (X>3 && X<=6)
        {
            printf("SILVER\n");
            
        }
        else
        {
            printf("GOLD");
        }
        
        
        
        }
    
    
    
}

Problem Link: DOREWARD Problem - CodeChef

@stutig
U have to print \n after gold too