package zerojudge;
import java.math.*;
import java.util.*;
public class a647
{
public static void main(String[] args)
{
BigDecimal profit;
Scanner sc=new Scanner(System.in);
int test=sc.nextInt();
BigDecimal artwork[][]=new BigDecimal[test][2];
for(int i=0;i<test;i++)
{
artwork[i][0]=sc.nextBigDecimal();
artwork[i][1]=sc.nextBigDecimal();
profit=artwork[i][1].divide(artwork[i][0],30,RoundingMode.HALF_UP).subtract(BigDecimal.ONE).multiply(BigDecimal.valueOf(100));
System.out.print(profit.setScale(2,RoundingMode.HALF_UP));
if(profit.compareTo(BigDecimal.valueOf(10))>=0 || profit.compareTo(BigDecimal.valueOf(-7))<=0)
System.out.println("% dispose");
else
System.out.println("% keep");
}
sc.close();
}
}