//I Think I Need a Houseboat
//以圆面积扩散,要几年淹没
#include<iostream.h>
#include<math.h>
#define pi 3.1415926
int main()
{
float i,j;
int n,s;
// cout<<int(624*pi/100+0.5);
cin>>n;
s=n;
while(s--)
{
cin>>i>>j;
cout<<"Property "<<n-s
<<": This property will begin eroding in year "
<<int((pow(i,2)+pow(j,2))*pi/100+1)<<"."<<endl;
}
cout<<"END OF OUTPUT."<<endl;
return 0;
}