def main():

    input_string = eval(input(''))

    elements = input_string.split(' ')

    height_a = int(elements[0])

    width_b = int(elements[1])

    print(('%d %d' % ((height_a * width_b), (2 * height_a + 2 * width_b))))



main()
def main():



    [height_a, width_b] = list(map(int, input().split()))

    print(('%d %d' % ((height_a * width_b), (2 * height_a + 2 * width_b))))





main()
def main():
    input_string = eval(input(""))
    elements = input_string.split(" ")
    height_a = int(elements[0])
    width_b = int(elements[1])
    print(("%d %d" % ((height_a * width_b), (2 * height_a + 2 * width_b))))


main()

def main():
    [height_a, width_b] = list(map(int, input().split()))
    print(("%d %d" % ((height_a * width_b), (2 * height_a + 2 * width_b))))


main()

-    input_string = eval(input("")) -    elements = input_string.split(" ") -    height_a = int(elements[0]) -    width_b = int(elements[1]) +    [height_a, width_b] = list(map(int, input().split()))