Help me in solving DOREWARD problem

My issue

My code

/* package codechef; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Codechef
{
	public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		Scanner sc = new Scanner(System.in);
		int donor = sc.nextInt();
		if(donor<=3){
		    System.out.println("BRONZE");
		}
		else if(donor>3 && donor<=6){
		    System.out.println("SILVER");
		}
		else if(donor>6){
		    System.out.println("GOLD");
		}
	}
}

Problem Link: DOREWARD Problem - CodeChef

Hey here is the correct code

you code was correct but you just write it for just one test but it is written in the problem to take the number of test case as input and run the code for that many number of times

/* package codechef; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Codechef
{
	public static void main (String[] args) throws java.lang.Exception
	{
	
		// your code goes here
		Scanner sc = new Scanner(System.in);
		int t=sc.nextInt();
	while(t>0){
		int donor = sc.nextInt();
		if(donor<=3){
		    System.out.println("BRONZE");
		}
		else if(donor>3 && donor<=6){
		    System.out.println("SILVER");
		}
		else if(donor>6){
		    System.out.println("GOLD");
		}
		t--;
	
	}
	    
	}
}

ok i am trying to fix that code.