#include"iostream"
#include"stdio.h"
#include"algorithm"
#include"math.h"
#define PI 3.1415926
//shit!! PI必须取3.1415926
using namespace std;
int main()
{
int num,count=1;
double a,b,c;
int year;
scanf("%d",&num);
while(num--)
{
scanf("%lf%lf",&a,&b);
c=(a*a+b*b)*PI/100.0;
year=ceil(c);
printf("Property %d: This property will begin eroding in year %d.\n",count++,year);
}
printf("END OF OUTPUT.\n");
}