#include<iostream>
using namespace std;
double a[7][2];
//这么水的一道题,竟然把一个数据类型定义错了,bs啊
int Score(double a,double b)
{
int sum;
double p=a*a+b*b;
if(p<=9.0)
sum=100;
else if(p<=36.0)
sum=80;
else if(p<=81.0)
sum=60;
else if(p<=144.0)
sum=40;
else if(p<=225.0)
sum=20;
else
sum=0;
return sum;
}
int main()
{
int i,score1,score2;
while(1)
{
for(i=0;i<6;i++)
{
scanf("%lf%lf",&a[i][0],&a[i][1]);
}
if(a[0][0]==-100)
break;
score1=0;
score2=0;
for(i=0;i<3;i++)
{
score1+=Score(a[i][0],a[i][1]);
}
for(i=3;i<6;i++)
{
score2+=Score(a[i][0],a[i][1]);
}
printf("SCORE: %d to %d, ",score1,score2);
if(score1>score2)
printf("PLAYER 1 WINS./n");
else if(score1<score2)
printf("PLAYER 2 WINS./n");
else
printf("TIE./n");
}
return 0;
}