# Arup Guha
# 9/7/2020
# Solution to COP 2930 Program #2A: Rectangle Area, Perimeter

# Get the user input.
length = int(input("Enter the length of the rectangle.\n"))
width = int(input("Enter the width of the rectangle.\n"))

# Calculate both area and perimeter based on input.
area = length*width
perimeter = 2*(length+width)

# Output the result.
print("area =", area)
print("perimeter =", perimeter)
