Write a program which calculates the area and perimeter of a given rectangle.
def main(a, b):
    print(a*b,' ',2*(a+b),'\n')
a, b = map(int, input().split())
area = a * b
perimeter = 2 * (a + b)
print(area, perimeter)

