CCCPaste

point_on_recatngle_boreder_08_03

x1 = float(input())
y1 = float(input())
x2 = float(input())
y2 = float(input())
x = float(input())
y = float(input())

flag = True

if (x == x1 or x == x2) and (y1 <= y <= y2) or \
        (y == y1 or y == y2) and (x1 <= x <= x2):
    flag = True
else:
    flag = False

if flag:
    print("Border")
else:
    print("Inside / Outside")