#include<stdio.h>
#include<math.h>
int main()
{
double x1,y1,r1,x2,y2,r2,d;
while(scanf("%lf%lf%lf%lf%lf%lf",&x1,&y1,&r1,&x2,&y2,&r2)!=EOF)
{
d=sqrt(fabs(x1-x2)*fabs(x1-x2)+fabs(y1-y2)*fabs(y1-y2));
if(d>r1+r2)
{
printf("disjoint\n");
}
else if(fabs(r1-r2)<d)
{
printf("contain\n");
}
else if(fabs(r1-r2)==d)
{
printf("internally tangent\n");
}
else if(r1+r2==d)
{
printf("externally tangent\n");
}
else if(d>fabs(r1-r2)&&d<fabs(r1+r2))
{
printf("overlap\n");
}
}
return 0;
}