import java.util.Scanner;
public class Main
{
public static void main(String[] args)
{
Scanner sc = new Scanner(System.in);
int count = sc.nextInt();
for (int i = 0; i < count; i++)
{
double a = sc.nextDouble();
double b = sc.nextDouble();
int year = (int) Math.ceil(Math.PI * (a * a + b * b) / 100);
System.out.printf("Property %d: This property will begin eroding in year %d.\n", i + 1, year);
}
System.out.println("END OF OUTPUT.");
}
}