def main():

    x = eval(input())

    x1, x2 = x.split(' ') 

    a = int(x1)

    b = int(x2)

    print((a*b, 2*(a+b)))



if __name__ == "__main__":

    main()
a, b = list(map(int, input().split()))

area = a * b

perimeter = 2 * (a + b)

print((area, perimeter))



def main():
    x = eval(input())
    x1, x2 = x.split(" ")
    a = int(x1)
    b = int(x2)
    print((a * b, 2 * (a + b)))


if __name__ == "__main__":
    main()

a, b = list(map(int, input().split()))
area = a * b
perimeter = 2 * (a + b)
print((area, perimeter))

-def main(): -    x = eval(input()) -    x1, x2 = x.split(" ") -    a = int(x1) -    b = int(x2) -    print((a * b, 2 * (a + b))) - - -if __name__ == "__main__": -    main() +a, b = list(map(int, input().split())) +area = a * b +perimeter = 2 * (a + b) +print((area, perimeter))