# Arup Guha
# 4/11/2025
# Solution to COP 4516 Team Contest Problem: Interesting Intersections

import math

# Returns a vector from pt1 to pt2.
def getVect(pt1, pt2):
    res = []
    for i in range(len(pt1)):
        res.append(pt2[i]-pt1[i])
    return res


EPS = 0.00000001

# Will run like this.
while True:

    # Just for first line.
    try:
        toks = [float(x) for x in input().split()]
    except EOFError:
        break

    # Get circle stuff.
    cX = float(toks[0])
    cY = float(toks[1])
    r = float(toks[2])

    # Reading the line is safe.
    toks = [float(x) for x in input().split()]
    pt1 = [toks[0], toks[1]]
    pt2 = [toks[2], toks[3]]
    v = getVect(pt1, pt2)

    # Constants inside of the square for our circle equation.
    c1 = pt1[0] - cX
    c2 = pt1[1] - cY

    # Quadratic equation for lambda
    a = v[0]*v[0] + v[1]*v[1]
    b = 2*c1*v[0] + 2*c2*v[1]
    c = c1*c1 + c2*c2 - r*r
    disc = b*b - 4*a*c

    # Just screen this out.
    if disc < 0:
        print("The line segment does not intersect the circle.")

    # Get sols for lambda.
    else:

        # Get the roots, which are the two parameters of intersection.
        root1 = (-b-disc**.5)/(2*a)
        root2 = (-b+disc**.5)/(2*a)

        # If either is in range, then there's an intersection.
        if (root1 > -EPS and root1 < 1+EPS) or (root2 > -EPS and root2 < 1+EPS):
            print("The line segment intersects the circle.")

        # In this case it doesn't.
        else:
            print("The line segment does not intersect the circle.")
    
