if __name__ == '__main__':

    key_in = eval(input())

    data = key_in.split(' ')



    height = int(data[0])

    width = int(data[1])

    area = height * width

    perimeter = 2 * height + 2 * width

    print(('{0} {1}'.format(area, perimeter)))
# -*- coding: utf-8 -*-

"""

http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_1_C&lang=jp



"""

import sys

from sys import stdin

input = stdin.readline





def main(args):

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

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





if __name__ == '__main__':

    main(sys.argv[1:])
if __name__ == "__main__":
    key_in = eval(input())
    data = key_in.split(" ")
    height = int(data[0])
    width = int(data[1])
    area = height * width
    perimeter = 2 * height + 2 * width
    print(("{0} {1}".format(area, perimeter)))

# -*- coding: utf-8 -*-
"""
http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_1_C&lang=jp
"""
import sys
from sys import stdin

input = stdin.readline


def main(args):
    a, b = list(map(int, input().split()))
    print((a * b, (a * 2 + b * 2)))


if __name__ == "__main__":
    main(sys.argv[1:])

+# -*- coding: utf-8 -*- +""" +http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_1_C&lang=jp +""" +import sys +from sys import stdin + +input = stdin.readline + + +def main(args): +    a, b = list(map(int, input().split())) +    print((a * b, (a * 2 + b * 2))) + + -    key_in = eval(input()) -    data = key_in.split(" ") -    height = int(data[0]) -    width = int(data[1]) -    area = height * width -    perimeter = 2 * height + 2 * width -    print(("{0} {1}".format(area, perimeter))) +    main(sys.argv[1:])