#include <iostream>
#include <math.h>
using namespace std;
int main(){
int a1, b1, r1;
int a2, b2, r2;
int ax, bx, cx;
int ay, by, cy;
cin >> a1 >> b1 >> r1;
cin >> a2 >> b2 >> r2;
cin >> ax >> bx >> cx;
cin >> ay >> by >> cy;
if ( ((ax-a1)*(ax-a1)+(ay-b1)*(ay-b1)<r1*r1)&&
((bx-a1)*(bx-a1)+(by-b1)*(by-b1)<r1*r1)&&
((cx-a1)*(cx-a1)+(cy-b1)*(cy-b1)<r1*r1)&&
((ax-a2)*(ax-a2)+(ay-b2)*(ay-b2)<r2*r2)&&
((bx-a2)*(bx-a2)+(by-b2)*(by-b2)<r2*r2)&&
((cx-a2)*(cx-a2)+(cy-b2)*(cy-b2)<r2*r2))
{
printf ("На пересечении");
}
else
{
printf ("Не на пересечении");
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8bWF0aC5oPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKCmludCBtYWluKCl7CglpbnQgYTEsIGIxLCByMTsKCWludCBhMiwgYjIsIHIyOwoJaW50IGF4LCBieCwgY3g7CglpbnQgYXksIGJ5LCBjeTsKCWNpbiA+PiBhMSA+PiBiMSA+PiByMTsKCWNpbiA+PiBhMiA+PiBiMiA+PiByMjsKCWNpbiA+PiBheCA+PiBieCA+PiBjeDsKCWNpbiA+PiBheSA+PiBieSA+PiBjeTsKCWlmICggKChheC1hMSkqKGF4LWExKSsoYXktYjEpKihheS1iMSk8cjEqcjEpJiYKCSAgICgoYngtYTEpKihieC1hMSkrKGJ5LWIxKSooYnktYjEpPHIxKnIxKSYmCgkgICAoKGN4LWExKSooY3gtYTEpKyhjeS1iMSkqKGN5LWIxKTxyMSpyMSkmJgoJICAgKChheC1hMikqKGF4LWEyKSsoYXktYjIpKihheS1iMik8cjIqcjIpJiYKCSAgICgoYngtYTIpKihieC1hMikrKGJ5LWIyKSooYnktYjIpPHIyKnIyKSYmCgkgICAoKGN4LWEyKSooY3gtYTIpKyhjeS1iMikqKGN5LWIyKTxyMipyMikpCgkgewoJICAgICBwcmludGYgKCLQndCwINC/0LXRgNC10YHQtdGH0LXQvdC40LgiKTsKCSB9CgllbHNlCgl7CiAgICAgICAgcHJpbnRmICgi0J3QtSDQvdCwINC/0LXRgNC10YHQtdGH0LXQvdC40LgiKTsKCX0KICAgIHJldHVybiAwOwp9