#!/usr/bin/env python

# coding: utf-8



def main():

	a, b = [int(x) for x in input().split(" ")]

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



if __name__ == '__main__':

	main()
#!/usr/bin/env python



# coding: utf-8





if __name__ == '__main__':

    x, y = list(map(int, input().split()))

    print(x * y, 2 * (x + y))
#!/usr/bin/env python
# coding: utf-8
def main():
    a, b = [int(x) for x in input().split(" ")]
    print(a * b, (a + b) * 2)


if __name__ == "__main__":
    main()

#!/usr/bin/env python
# coding: utf-8
if __name__ == "__main__":
    x, y = list(map(int, input().split()))
    print(x * y, 2 * (x + y))

-def main(): -    a, b = [int(x) for x in input().split(" ")] -    print(a * b, (a + b) * 2) - - -    main() +    x, y = list(map(int, input().split())) +    print(x * y, 2 * (x + y))