# Arup Guha
# Slope Program
# 6/1/2026

# Get first point.
x1 = int(input("Enter the x coordinate of the first point.\n"))
y1 = int(input("Enter the y coordinate of the first point.\n"))

# And second point.
x2 = int(input("Enter the x coordinate of the second point.\n"))
y2 = int(input("Enter the y coordinate of the second point.\n"))

# Get undefined case out of the way.
if x1 == x2:
    print("Undefined slope.")

# Horizontal case.
elif y1 == y2:
    print("Horizontal line, 0 slope.")

# Positive case.
elif (y2-y1)/(x2-x1) > 0:
    print("The slope is positive.")

# Must be negative.
else:
    print("The slope is negative.")
