import java.util.* ;
import java.lang.* ;
import java.io.* ;
class Ideone
{
public static void main
( String [ ] args
) { Scanner in
= new Scanner
( System .
in ) ; int a1= in.nextInt ( ) ;
int b1= in.nextInt ( ) ;
int r1= in.nextInt ( ) ;
int a2= in.nextInt ( ) ;
int b2= in.nextInt ( ) ;
int r2= in.nextInt ( ) ;
int ax= in.nextInt ( ) ;
int bx= in.nextInt ( ) ;
int cx= in.nextInt ( ) ;
int ay= in.nextInt ( ) ;
int by= in.nextInt ( ) ;
int cy= in.nextInt ( ) ;
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) )
{
System .
out .
printf ( "На пересечении" ) ; }
else
{
System .
out .
printf ( "Не на пересечении" ) ; }
}
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgpjbGFzcyBJZGVvbmUKewoJcHVibGljIHN0YXRpYyB2b2lkIG1haW4gKFN0cmluZ1tdIGFyZ3MpIHsKCQlTY2FubmVyIGluPW5ldyBTY2FubmVyKFN5c3RlbS5pbik7CgkJaW50IGExPWluLm5leHRJbnQoKTsKCQlpbnQgYjE9aW4ubmV4dEludCgpOwoJCWludCByMT1pbi5uZXh0SW50KCk7CgkJaW50IGEyPWluLm5leHRJbnQoKTsKCQlpbnQgYjI9aW4ubmV4dEludCgpOwoJCWludCByMj1pbi5uZXh0SW50KCk7CgkJaW50IGF4PWluLm5leHRJbnQoKTsKCQlpbnQgYng9aW4ubmV4dEludCgpOwoJCW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