Problem:
Rectangle Write a program which calculates the area and perimeter of a given rectangle. Input The length a and breadth b of the rectangle are given in a line separated by a single space. Output Print the area and perimeter of the rectangle in a line. The two integers should be separated by a single space. Constraints  1 ≤ a , b ≤ 100  Sample Input 1 3 5 Sample Output 1 15 16

Solution (Python):
n = list(map(int, input().split()))
print(n[0]*n[1], 2*(n[0]+n[1]))

Solution (Python):
l = input().split()
a = int(l[0])
b = int(l[1])

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

Solution (Python):
l = input().split()
a = int(l[0])
b = int(l[1])
print(a*b,end=' ')
print(2*(a+b))

Solution (Python):
a,b = map(int,input().split())
print (a*b,2*(a+b))

Solution (Python):
a, b = map(int, input().split())

l = a * b

q = 2 * (a + b)

print('{} {}'.format(l, q))

Solution (Python):
a, b = list(map(int,input().split()))
S = a * b
L = 2 * a + 2 * b
print(S, L)

Solution (Python):
a,b = map(int,input().split())
S = 2*(a+b)
P = a*b
print(P,S)

Solution (Python):
a, b = map(int, input().split())

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

Solution (Python):
a, b = map(int, raw_input().split())
print a*b , 2*(a+b)

Solution (Python):
a,b = map(int,input().split())
print(a*b,2*(a+b))

Solution (Python):
a, b = (int(x) for x in input().split())
print(a*b, 2*(a+b))

Solution (Python):
a,b = map(int,input().split())
print(a*b,2*(a+b))

Solution (Python):
a,b = map(int,input().split(" "))
print(str(a*b) +" "+str(2*(a+b)))

Solution (Python):
import math
import copy
from copy import deepcopy
import sys
import fractions

from functools import reduce

import heapq
import collections
import itertools
sys.setrecursionlimit(100001)






def getInputInt():
    inputNum = int(input())
    return inputNum


def getInputListInt():
    outputData = []
    inputData = input().split()
    outputData = [int(n) for n in inputData]

    return outputData


def getSomeInputInt(n):
    outputDataList = []
    for i in range(n):
        inputData = int(input())
        outputDataList.append(inputData)

    return outputDataList


def getSomeInputListInt(n):
    inputDataList = []
    outputDataList = []
    for i in range(n):
        inputData = input().split()
        inputDataList = [int(n) for n in inputData]
        outputDataList.append(inputDataList)

    return outputDataList




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

area = a*b
perimeter = 2*a+2*b

print(area, perimeter)

Solution (Python):
A,B = map(int,input().split())

print(A*B,2*(A+B))

Solution (Python):
a, b = map(int, input().split())
print('{} {}'.format(a*b, (a+b)*2))

Solution (Python):
x=input().split()
a,b=map(int,x)
print(a*b,a*2+b*2)

Solution (Python):
a, b = map(int, input().split())
A = a * b
B = (2 * a) + (2 * b)
print(A, B)

Solution (Python):
a,b=map(int, input().split())
c,d = a*b, 2*(a+b)
print(c,d)

Solution (Python):
a,b = input().split()

VerticalLength = int(a)
HorizontalLength = int(b)
area = VerticalLength * HorizontalLength

circumference = 2 * (VerticalLength + HorizontalLength)


print(area, circumference)

Solution (Python):
a,b = map(int,input().split())
print(a*b,a*2+b*2)

Solution (Python):

n = list(map(int,input().split()))
print(n[0]*n[1],(n[0]+n[1])*2)

Solution (Python):
x = list(map(int, input().split()))

s = x[0]*x[1]
l = x[0]*2+x[1]*2

print(f"{s} {l}")

Solution (Python):
a,b=map(int,input().split())
print(a*b, (a+b)*2)

Solution (Python):
a, b= map(int, input().split())
m=a*b
z=2*(a+b)
print(m,z)

Solution (Python):
a,b = map(int, input().split())
print(a * b , 2 * (a + b))

Solution (Python):
a, b = map(int, input().split())
print('{} {}'.format(a * b, 2 * (a + b)))

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

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

Solution (Python):
a,b = map(int,input().split())

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

Solution (Python):
a, b = map(int, input().split())

area = a*b

l = 2*(a+b)

print(area, l)

Solution (Python):
a, b = map(int, input().split())
print("{} {}".format(a * b, 2 * (a + b)))

Solution (Python):
a, b = map(int, input().split())
print(a*b, 2*(a + b))

Solution (Python):
a,b = map(int,input().split())
print(a*b,2*(a+b))

Solution (Python):
a,b = map(int, input().split())
print(a*b,2*(a+b))

Solution (Python):
t,y=(int(x) for x in input().split())
men=t*y
syu=2*(t+y)
print(men,syu)

Solution (Python):
a, b = map(int, input().split(" "))
S = a*b
L = (a+b)*2
print("{} {}".format(S, L))

Solution (Python):
a,b = map(int,input().split())
print(a*b,2*(a+b))

Solution (Python):
a, b = map(int, input().split())

ans1 = a*b
ans2 = a*2 + b*2
print(ans1, ans2)

Solution (Python):

height,width = map(int,input().split())
print(height * width, height*2 + width*2)

Solution (Python):
h, s = map(int, input().split())

area = h * s

length = (h + s) * 2

print(area, length)

Solution (Python):
a,b=map(int,input().split())
print(a*b, 2*a+2*b)

Solution (Python):
s = input().rstrip().split(' ')
a = int(s[0])
b = int(s[1])
area = a * b
length = (2 * a) + (2 * b)
print(str(area) + " " + str(length))

Solution (Python):
a, b =map(int, input().split())
print(a*b, a*2+b*2)

Solution (Python):
i=input()  
i=i.split()
i=list(map(int,i))
 

s=i[0]*i[1]


l=i[0]*2+i[1]*2

print(s,l)

Solution (Python):
a, b = map(int, input().split())
print(a*b,2*(a+b))

Solution (Python):
a, b = (int(x) for x in input().split())
print(a*b, (a * 2 + b * 2))

Solution (Python):
l = input()
a,b = map(int,l.split())
x = a * b
y = 2 * (a + b)
print (x,y)

Solution (Python):
a,b= map(int, input().split())
print(a*b,2*(a+b))

Solution (Python):
a, b = map(int, input().split())
print(a*b, a*2+b*2)

Solution (Python):
a,b=input().split()
a=int(a)
b=int(b)
print(a*b,a*2+b*2)

Solution (Python):
s = input()
x = s.split()
a = int(x[0])
b = int(x[1])
print(a*b, a+b+a+b)

Solution (Python):
a,b=map(int,input().split())
print(a*b, 2*(a+b))

Solution (Python):
a, b = map(int, input().split())
print(a*b, (a+b)*2)

Solution (Python):
x, y = map(int, input().split())
print(x*y, 2*(x+y))

Solution (Python):
a,b = input().split(" ")
a = int(a)
b = int(b)
area = a*b
perimiter = 2*(a+b)
print("{} {}".format(area,perimiter))

Solution (Python):
a, b = map(int, input().split())
print(a * b, (a + b) * 2)

Solution (Python):
a, b = map(int, input().split())
s = a * b
l = (a + b)* 2
print(s, l)

Solution (Python):
a,b=map(int,input().split())
print(a*b, a*2+b*2)

Solution (Python):
a,b=input().split()
print(int(a)*int(b),int(a)*2+int(b)*2)

Solution (Python):
a,b = map(int,input().split())

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

Solution (Python):
a,b=map(int,input().split())
print(a*b,a*2+b*2)

Solution (Python):
x,y = map(int,input().split())
area = x * y
mawari = 2 *(x + y)

print(area, mawari)

Solution (Python):
a, b = map(int, input().split())
print(a*b, a*2+b*2)

Solution (Python):
a,b=map(int,input().split())
print(a*b,(a+b)*2)

Solution (Python):
a,b= input().split()

a = int(a)
b = int(b)


menseki=a*b
nagasa=a*2+b*2

print(str(menseki) + " " + str(nagasa))

Solution (Python):
a,b=map(int, input().split())

print("{} {}".format(a*b,2*(a+b)))

Solution (Python):
a, b = map(int, input().split())
print(a * b, 2 * (a + b))

Solution (Python):
i = list(map(int, input().split()))
a = i[0]
b = i[1]

print('{} {}'.format(a*b, 2*a+2*b))

Solution (Python):
a, b = map(int, input().split())

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

Solution (Python):
a,b = map(int,input().split())
menseki = a*b
syu = a*2+b*2
print(menseki,syu)

Solution (Python):
A = input()
a,b = list(map(int,A.split()))
B = [a*b,2*(a+b)]
print(B[0],B[1])

Solution (Python):
i=input().split()
a,b = [int(x) for x in i]

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

Solution (Python):
a, b = map(int, input().split())
area = a * b
around = a * 2 + b * 2
print("{} {}".format(area, around))

Solution (Python):
a, b = input().split()
a = int(a)
b = int(b)

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

Solution (Python):
a,b = map(int, input().split())
print(a*b,2*(a+b))

Solution (Python):
a,b = map(int, input().split())
area = a * b
Perimeter = (a+b)*2

print(area,Perimeter)

Solution (Python):
a, b = map(int,  input().split())

print("%d %d" %(a*b ,2*(a+b)))

Solution (Python):
a, b = map(int, input().split())
print('{} {}'.format(a*b, 2*(a+b)))

Solution (Python):
a , b=map(int,(input().split()))

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

Solution (Python):
a,b = map(int, input().split())
print(a*b, 2*a+2*b)

Solution (Python):
line = input()

strings = line.split()

height = int(strings[0])
width = int(strings[1])

area = height * width
perimeter = 2 * height + 2 * width

print('{area} {perimeter}'.format(area=area, perimeter=perimeter))

Solution (Python):
a,b = map(int,input().split())
n = 2*(a + b)
y = a * b
print(str(y) +" "+ str(n))

Solution (Python):
a,b = map(int,input().split())
print(a*b, 2*(a+b))

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

if __name__ == '__main__':
  main()

Solution (Python):
x, y = input().split()
x = int(x)
y = int(y)
print(x * y, 2 * (x + y))

Solution (Python):
ab = [int(x) for x in input().split()]
a = ab[0]
b = ab[1]
print(a * b, 2 * (a+b))

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

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

Solution (Python):
numbers = input().split()
a = int(numbers[0])
b = int(numbers[1])
c = a*b
d = (a+b)*2

print(c, d)

Solution (Python):
a,b = map(int,input().split())

print(str(a*b) + " " + str(2*a+2*b))

Solution (Python):
a,b = map(int,input().split())
print(a*b,2*(a+b))

Solution (Python):
a,b = map(int,input().split())
print(a*b,a+a+b+b)

Solution (Python):
a, b = input().split()
a = int(a)
b = int(b)

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

Solution (Python):
a,b=(int(x) for x in input().split())
m = int(a)*int(b)
r = int(a)*2+int(b)*2
print(str(m)+" "+str(r))

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

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

Solution (Python):
a,b = map(int,input().split())
print(a*b,2*(a+b))

Solution (Python):
l=input().split()
a=int(l[0])
b=int(l[1])
print(a*b, (a+b)*2)

Solution (Python):
i = input().split()
a = int(i[0])
b = int(i[-1])
s = a*b
c = (a+b)*2
print(str(s)+" "+str(c))

Solution (Python):
a,b=map(int,input().split())
print(a*b,a*2+b*2)

Solution (Python):
a, b = map(int, input().split())
print(str(a * b) + " " + str(2 * (a + b)))

Solution (Python):
a,b=map(int,input().split())
print(a*b,2*(a+b),sep=" ")

Solution (Python):
a, b = [int(i.strip()) for i in input().split()]
area = a * b
long = (a + b) * 2 
print(area, long)

Solution (Python):
l = input()
a,b = list(map(int, l.split()))
s= a*b
L= 2*(a+b)
print(s, L)

Solution (Python):
A,B=list(map(int,input().split(' ')))
print(A*B,2*(A+B))

Solution (Python):
a, b = map(int,input().split())
print(a*b,2*a+2*b)

Solution (Python):
sc = input().split()
a = int(sc[0])
b = int(sc[1])
print(a * b, 2 * (a + b))

Solution (Python):
l = []
l = raw_input().split()

a = (int(l[0]))
b = (int(l[1]))

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

Solution (Python):
import sys
a, b = map(int, input().split())
print(a * b, (a + b ) * 2)

Solution (Python):
a, b = map(int, input().split())

area = a * b
length = 2 * (a + b)

print(str(area)+" "+str(length))

Solution (Python):
x = list(map(int, input().split()))
a = x[0] * x[1]
l = 2 * (x[0] + x[1])
print(str(a) + ' ' + str(l))

Solution (Python):
a, b = map(int, input().split())
print(a*b, 2*(a + b))

Solution (Python):
i = list(map(int, input().split()))
print(i[0]*i[1], i[0]*2 + i[1]*2)

Solution (Python):
a,b=[int(i) for i in input().split()]

print(str(a*b)+" "+str(2*(a+b)))

Solution (Python):
x,y = map(int,input().split())
print((x * y), (x + y) * 2)

Solution (Python):
x, y = map(lambda x: int(x), input().split(" "))
print("{} {}".format(x * y, 2 * x + 2 * y))

Solution (Python):
a,b =map(int, input().split())
print(a*b,2*(a+b))

Solution (Python):
def calc_area(a, b):
    return a*b


def calc_surrounding_length(a, b):
    return (a+b)*2


if __name__ == "__main__":
    a, b = map(int, input().split())
    print('{} {}'.format(calc_area(a, b), calc_surrounding_length(a, b)))

Solution (Python):
a,b=map(int,input().split())
print(a*b,2*(a+b))

Solution (Python):
a,b = map(int,input().split())
ansa = a*b
ansb = a*2+b*2
print(ansa,ansb)

Solution (Python):
ab = input().split()

S = int(ab[0])*int(ab[1])
D = 2*(int(ab[0])+int(ab[1]))

print(S, D)

Solution (Python):
a, b  = map(int,input().split())
print(a*b,2*(a+b))

Solution (Python):
a,b = map(int,input().split())
print(a*b,(a*2)+(b*2))

Solution (Python):
a,b=(int(x) for x in input().split())
s=a*b
l=2*(a+b)
print(s,l)

Solution (Python):
A,B = map(int,input().split())

print(A*B,2*(A+B))

Solution (Python):
i = input()
a,b = map(int, i.split())
print(a*b, 2*(a+b))

Solution (Python):

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

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

Solution (Python):
ans = input()
x, y = map(int, ans.split())
print(x*y, x*2 + y*2)

Solution (Python):
a,b = map(int, input().split())
ans1 = 0
ans2 = 0

ans1 = a*b

ans2 = a*2 + b*2

print("%d %d"%(ans1,ans2))

Solution (Python):
a,b = map(int,(input().split()))
r1 = a*b
r2= a*2+b*2
print('{} {}'.format(r1,r2))

Solution (Python):
a , b = map(int, input().split())
print(a*b , 2*(a+b))

Solution (Python):
import sys

str_a, str_b =input().split()
a=int(str_a)
b=int(str_b)
if not (a >=1 and a<=100):
    sys.exit()
b=int(str_b)
if not (b >=1 and b<=100):
    sys.exit()
print(str(a*b) + " " + str(a*2+b*2))

Solution (Python):
i = input()
a,b = map(int, i.split())
c = a*b
d = 2*(a+b)
print(str(c) + " " + str(d))

Solution (Python):
a,b=map(int,input().split(' '))
print(a*b,a*2+b*2)

Solution (Python):
x = input()
y = x.split()
a,b = int(y[0]),int(y[1])
m = a*b
l = (a+b)*2
print(m,l)

Solution (Python):
a,b = map(int,input().split())
x = a*b
y = 2*(a+b)
print(x,y)

Solution (Python):
height, width = [int(x) for x in input().split()]
area = height * width
perimeter = height * 2 + width * 2

print(area, perimeter)

Solution (Python):
a, b, = map(int,input().split())
c = int(2*a + 2*b)
d = int(a*b)
print(d, c)

Solution (Python):
a,b = list(map(int,input().split()))
print(a*b,2*(a+b))

Solution (Python):
a, b = map(int, input().split())

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

Solution (Python):
a, b = [int(n) for n in input().split()]
print(a*b, (a+b)*2)

Solution (Python):
A,B = map(int,input().split())

print(A*B,2*(A+B))

Solution (Python):
def S(l, w):
    s = l * w
    return s

def C(l, w):
    c = 2 * (l + w)
    return c

def main():
    lw = input()
    split_lw = lw.split()
    l = int(split_lw[0])
    w = int(split_lw[1])
    s = S(l, w)
    c = C(l, w)

    print(s,c)

if __name__ == '__main__':
    main()

Solution (Python):
a,b = map(int,input().split())
print(a*b,(a+b)*2)

Solution (Python):
a, b = map(int, input().split())
print(a*b, 2*a+2*b)

Solution (Python):
a, b = map(int, input().split())

m = a*b
s = a*2 + b*2
print(m, s)

Solution (Python):
shu = input().split()
a = int(shu[0])
b = int(shu[1])
print("{0} {1}".format(a*b, 2*(a+b)))

Solution (Python):
shu = raw_input().split()
a = int(shu[0])
b = int(shu[1])
print("{0} {1}".format(a*b, 2*(a+b)))

Solution (Python):



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

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

Solution (Python):
a,b=(int(x) for x in input().split())

print('{} {}'.format(a*b, 2*(a+b)))

Solution (Python):
a, b = map(int, input().split())
print(a*b, a*2+b*2)

Solution (Python):
a, b = map(int, input().split())
print("{} {}".format(a*b,2*(a+b)))

Solution (Python):
a,b = map(int, input().split())
print(a*b, 2*(a+b))

Solution (Python):
a, b = map(int,input().split())

area = a * b
prm = 2*a + 2*b

print(area, prm)

Solution (Python):
a,b=map(int,input().split())
print(a*b, (a+b)*2)

Solution (Python):
a, b = map(int,input().split())

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

Solution (Python):
a, b = [int(i) for i in input().split()]
print(a*b, a*2+b*2)

Solution (Python):
a,b=map(int,input().split())
print(a*b,2*a+2*b)

Solution (Python):
a, b = map(int, input().split())
print(a*b, 2*(a+b))

Solution (Python):
n = input().split()
a,b = int(n[0]), int(n[1])
s = a*b
r = (a+b)*2
print(f"{s} {r}")

Solution (Python):
a, b = map(int, input().split())
print(a*b,end=" ")
print(2*a+2*b)

Solution (Python):
a, b = map(int, input().split())
area = a * b
circum = 2 * a + 2 * b
print(area, circum)

Solution (Python):
a, b = map(int, input().split(' '))
print(a * b, a * 2 + b * 2)

Solution (Python):
x,y=map(int,input().split())
print(str(x*y)+" "+str(x*2+y*2))

Solution (Python):
a,b = map(int,input().split())
area = (a * b)
perimeter = (a+b+a+b)
print(area,perimeter)

Solution (Python):
a, b = map(int, input().split())
print(str(a*b) + " " + str(2*a+2*b))

Solution (Python):

a,b = map(int,input().split())
s = a * b
l = 2 * (a + b)
print(s, l)

Solution (Python):
import sys
input = sys.stdin.readline

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

Solution (Python):
a, b = map(int, input().split(' '))

x = a*b
y = 2*(a+b)
print(x, y)

Solution (Python):
a,b=map(int,input().split())

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

Solution (Python):
a, b = map(int, input().split())
print(a*b, 2*a+2*b)

Solution (Python):
a, b = map(int, input().split())

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

Solution (Python):
A, B = map(int, input().split())
print(A*B, 2*A+2*B)

Solution (Python):
a,b=map(int,input().split())
print(a*b,2*a+2*b)

Solution (Python):
a,b=map(int,input().split())
print(a*b,2*(a+b))

Solution (Python):
height,width=map(int,input().split(" "))
print(height*width, 2*(height+width))

Solution (Python):
a,b = map(int, input().split())
print(a * b, (a + b) * 2)

Solution (Python):
x=[int(i) for i in input().split()]
print(x[0]*x[1],(x[0]+x[1])*2)

Solution (Python):
a,b=map(int, input().split())
print(a*b, 2*(a+b))

Solution (Python):
x, y = list(map(int, input().split()))
print(x * y, 2 * (x + y))

Solution (Python):
class Rectangle:
    def __init__(self, len, breadth):
        self.len = a
        self.breadth = b

    def area(self):
        return self.breadth * self.len
    
    def perimeter(self):
        return (self.breadth + self.len) * 2

x = input()
a = int(x.split()[0])
b = int(x.split()[1])
rectangle = Rectangle(a, b)
print(str(rectangle.area() )+ " " +str(rectangle.perimeter()))

Solution (Python):
a,b = map(int,input().split())
print(a*b,(a+b)*2)

Solution (Python):
a,b = map(int, input().split())
print(a*b,(a+b)*2)

Solution (Python):
a, b = map(int, input().split())

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

Solution (Python):
a,b = map(int,input().split())
print(a*b,2*(a+b))

Solution (Python):
inputline = input().split()
a = int(inputline[0])
b = int(inputline[1])

def menseki(a,b):
    c = a*b
    return c
def syuu(a,b):
    d = a*2 + b * 2
    return d
print(str(menseki(a,b))+" "+str(syuu(a,b)))

Solution (Python):
s=input().split()
print(str(int(s[0])*int(s[1])),str(2*(int(s[0])+int(s[1]))))

Solution (Python):
val = input()
a2, b2 = val.split(' ')
a=int(a2)
b=int(b2)

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

Solution (Python):
a, b = map(int, input().split())
print(a*b, 2*(a+b))

Solution (Python):
l = input().split()
a = int(l[0])
b = int(l[1])
print(a*b,(a+b)*2)

Solution (Python):
height, width = list(map(int, input().split()))
print("{} {}".format(height * width, (height * 2) + (width * 2)))

Solution (Python):
x, y = map(int, input().split(" "))
print(x*y, end =" ")
print(2*(x+y))

Solution (Python):
a,b = map(int,input().split())
print(a*b, 2*(a+b))

Solution (Python):
i = input()
a,b = map(int, i.split())
print(a*b, 2*(a+b))

Solution (Python):
a,b=(int(x) for x in input().split())
S=a*b
l=2*(a+b)
print(S,l)

Solution (Python):
a,b = [int(i) for i in input().split()]

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

Solution (Python):
x,y = map(int,input().split(' '))
print(x * y, (x + y) * 2)

Solution (Python):
a, b = input().split()
a = int(a)
b = int(b)

print(str(a*b) + " " + str(2 * (a+b)) )

Solution (Python):



a, b = raw_input().split()



x,y=int(a)*int(b),int(a)*2+int(b)*2
print(str(x)+' '+str(y))

Solution (Python):
a,b = input().split()
a = int(a)
b = int(b)
A = a*b
B = a*2 + b*2
print(A,B)

Solution (Python):
a, b =input().split()
a = int(a)
b = int(b)
print(a*b,a+a+b+b )

Solution (Python):
number = input("")
number_split = number.split()

number_area = int(number_split[0]) * int(number_split[1])
number_length = int(number_split[0]) * 2 + int(number_split[1]) * 2

print(f"{number_area} {number_length}")

Solution (Python):
a , b =map(int,input().split())

x = a*b
y = 2*(a+b)

print('{} {}'.format(x,y))

Solution (Python):
a, b = map(int,input().split())
ans1 =a*b
ans2 =(a+b)*2
print(str(ans1)+' '+str(ans2))

Solution (Python):
a,b = map(int,input().split())
print(a*b,2*(a+b))

Solution (Python):
a,b=map(int,input().split())
print(a*b,2*(a+b))

Solution (Python):
a,b=map(int,input().split())
print('{0} {1}' .format(a*b, 2*a+2*b))

Solution (Python):
a,b=map(int,input().split())
print(a*b, 2*(a+b))

Solution (Python):
l = input().split()
a = int(l[0])
b = int(l[1])

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

Solution (Python):
a,b=map(int,input().split())
print(a*b,(a+b)*2)

Solution (Python):
import sys
import itertools



read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

a,b = map(int,readline().split())

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

Solution (Python):
A,B = map(int,input().split())

print(A*B,2*(A+B))

Solution (Python):
l = input().split()
a = int(l[0])
b = int(l[1])
print(a * b, 2 * (a + b))

Solution (Python):
a, b = map(int, input().split())
print(a*b,2*(a+b))

Solution (Python):
a,b = map(int, input().split())
print("{0} {1}".format(a*b, a+a+b+b))

Solution (Python):
a,b=input().split(' ')
a=int(a)
b=int(b)
print("%d %d"%(a*b,(a+b)*2))

Solution (Python):
a, b = map(int, input().split())
print(a*b, 2*(a+b))

Solution (Python):
a, b = map(int, input().split())
print(a*b, 2*(a+b))

Solution (Python):
a,b = list(map(int,input().split()))
print(a*b,2*(a+b))

Solution (Python):
l = input().split()
cal = list(map(int,l))
ans1,ans2 = [cal[0]*cal[1],cal[0]* 2 + cal[1] * 2]
print(ans1,ans2)

Solution (Python):
a, b = map(int, input().split())
print(" ".join(map(str, [a*b, (a+b)*2])))

Solution (Python):
a, b = input().split()
A = int(a)*int(b)
P = 2*int(a)+2*int(b)
print(str(A) + ' ' + str(P))

Solution (Python):
a, b = map(int, input().split())

square = a * b 
length = (a + b) * 2

print(f"{square} {length}")

Solution (Python):
x, y = list(map(int, input().split()))
area = x * y
circumference = x*2 + y*2
print(' '.join(map(str, [area, circumference])))

Solution (Python):
a , b =(int(x) for x in input().split())
print(a*b,(a+b)*2)

Solution (Python):
a,b = map(int,input().split())
print(" ".join(map(str, [a*b, 2*(a+b)])))

Solution (Python):


iim = lambda: map(int, input().rstrip().split())

def resolve():
    a, b = iim()
    print(a*b, 2 * (a + b))

if __name__ == "__main__":
    resolve()

Solution (Python):


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

Solution (Python):
line = input()
a, b = map(int, line.split())
print(a*b,  2*(a+b))

Solution (Python):
a ,b = input().split(" ")

a = int(a)
b = int(b)


area = a*b
perimitar = 2 * (a + b)

print("{} {}".format(area, perimitar))

Solution (Python):
a, b = map(int, input().split())
print(a*b, 2*(a+b))

Solution (Python):
A,B = map(int,input().split())

print(A*B,2*(A+B))

Solution (Python):
a, b = map(int, input().split())
print(a * b, end = " ")
print(2 * a + 2 * b)

Solution (Python):
s = input()
x = s.split()
a = int(x[0])
b = int(x[1])
print(a*b, a+b+a+b)

Solution (Python):
a,b=(int(i) for i in input().split())
print(a*b,2*(a+b))

Solution (Python):
a, b = input().split()
area = int(a) * int(b)
peri = (int(a) + int(b)) * 2
print(area, peri)

Solution (Python):
a, b = input().split()
area = int(a) * int(b)
peri = (int(a) + int(b)) * 2
print(area, peri)

Solution (Python):
a, b = input().split()
area = int(a) * int(b)
peri = (int(a) + int(b)) * 2
print(area,peri)

Solution (Python):
a,b = input().split()
area = int(a) * int(b)
peri = (int(a) + int(b)) * 2
print(area, peri)

Solution (Python):
a, b = input().split()
area = int(a) * int(b) 
peri = (int(a) + int(b)) * 2
print(area, peri)

Solution (Python):
a, b = input().split()
area = int(a) * int(b)
peri = (int(a)+int(b)) * 2
print(area, peri)

Solution (Python):
a, b = input().split()
area = int(a) * int(b)
peri = (int(a) + int(b)) * 2
print(area, peri)

Solution (Python):
a, b = input ().split()
area = int(a) * int(b)
peri = (int(a) + int(b)) * 2
print(area, peri)

Solution (Python):
a, b = input().split()
area = int(a) * int(b)
peri = (int(a) + int(b)) * 2
print(area, peri)

Solution (Python):
a, b = input().split()
area = int(a) * int(b)
peri = (int(a)+int(b)) * 2
print(area, peri)

Solution (Python):
a,b = input().split()
area = int(a) * int(b)
peri =(int(a) + int(b))*2
print(area,peri)

Solution (Python):
a,b=input().split()
area=int(a) * int(b)
peri=(int(a)+int(b))*2
print(area,peri)

Solution (Python):
a, b = input().split()
area = int(a) * int(b)
peri =(int(a) + int (b)) * 2
print(area, peri)

Solution (Python):
a, b = input().split()
area = int(a) * int(b)
peri = (int(a) + int(b)) * 2
print(area,peri)

Solution (Python):
a, b = input().split()
area = int(a) * int(b)
peri = (int(a) + int(b)) * 2
print(area, peri)

Solution (Python):
a, b = input().split()
area = int(a) * int(b)
peri = (int(a) + int(b)) * 2
print(area, peri)

Solution (Python):
a,b=input().split()
area=int(a)*int(b)
peri=(int(a)+int(b)) * 2
print(area,peri)

Solution (Python):
a,b=input().split()
area=int(a)*int(b)
peri=(int(a)+int(b))*2
print(area,peri)

Solution (Python):
[x,y] = input().split(" ")
a = int(x)
b = int(y)

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

Solution (Python):
a, b = input().split()
area = int(a) * int(b)
peri = (int(a) + int(b)) * 2
print(area, peri)

Solution (Python):
a,b=input().split()
area=int(a)*int(b)
peri=(int(a)+int(b))*2
print(area,peri)

Solution (Python):
a, b = input().split()
area = int(a) * int(b)
peri = (int(a) + int(b))*2
print(area, peri)

Solution (Python):
a,b = input().split()
area = int(a) * int(b)
peri = (int(a) + int(b)) * 2
print(area, peri)

Solution (Python):
a,b=input().split()
area=int(a)*int(b)
peri=(int(a)+int(b))*2
print(area,peri)

Solution (Python):
a,b=input().split()
area=int(a)*int(b)
peri=(int(a)+int(b))*2
print(area,peri)

Solution (Python):
a,b = input().split()
area = int(a)*int(b)
peri = (int(a)+int(b))*2
print(area,peri)

Solution (Python):
a,b=input().split()
area=int(a)*int(b)
perimeter=(int(a)+int(b))*2
print(area,perimeter)

Solution (Python):
[x,y] = input().split()
a = int(x)
b = int(y)
print(a*b, (a+b)*2)

Solution (Python):
a,b = input().split()
x = 2*(int(a)+int(b))
y = int(a)*int(b)
print(int(y), int(x))

Solution (Python):
i = list(map(int, input().split()))
print(i[0]*i[1], (i[0]+i[1])*2)

Solution (Python):
a, b = input().split()
print(str(int(a)*int(b)) , str(2 * (int(a) + int(b))))

Solution (Python):
x,y = input().split()
x= int(x)
y = int(y)
print(x*y,2*x+2*y)

Solution (Python):
a, b = input().split()
c = int(a) * int(b)
d = (int(a) + int(b)) * 2
print(int(c) , int(d))

Solution (Python):
x, y=input().split()
print(int(x)*int(y),2*(int(x)+int(y)))

Solution (Python):
import math
x, y = input().split()
a = int(x) * int(y)
b = (int(x) + int(y)) * 2
print(a, b)

Solution (Python):
import math
a,b=input().split()
a=int(a)
b=int(b)
print(a*b,((a+b)*2))

Solution (Python):
x,y=input().split()
print(int(x)*int(y),2*(int(x)+int(y)))

Solution (Python):
x = input().split()
a,b = [int(x) for x in x]
print(a*b,2*(a+b))

Solution (Python):
a,b = input().split()
print(int(a)*int(b),int(a)*2+int(b)*2)

Solution (Python):
a,b = input().split()
print(int(a)*int(b),int(a)*2+int(b)*2)

Solution (Python):
a, b = input(). split()
print (int(a)*int(b),int(a)*2+int(b)*2)

Solution (Python):
a, b = input().split()
print(int(a)*int(b),int(a)*2 +int(b)*2)

Solution (Python):
x, y = input().split()
a = int(x)
b = int(y)
print(a * b, (a + b) * 2)

Solution (Python):
a, b = input().split()
print(int(a)*int(b), (int(a)+int(b))*2)

Solution (Python):
a,b = input().split()
print(int(a)*int(b),int(a)*2+int(b)*2)

Solution (Python):
x, y = input().split()
print(int(x)*int(y),int(x)*2+int(y)*2)

Solution (Python):
x,y=input().split()

print(int(x)*int(y),int(x)*2+int(y)*2)

Solution (Python):
a,b=[int(x) for x in input().split()]
print(a*b,2*(a+b))

Solution (Python):
a,b=[int(x) for x in input().split()]
print(a*b,2*(a+b))

Solution (Python):
a,b=input().split()
print(int(a)*int(b),int(a)*2+int(b)*2)

Solution (Python):
a, b = input().split()
print(int(a)*int(b),int(a)*2+int(b)*2)

Solution (Python):
a,b=input().split()
print(int(a) * int(b),int(a)*2 + int(b)*2)

Solution (Python):
a,b = input().split()
print(int(a) * int(b) , int(a) *2 + int(b) *2)

Solution (Python):
a,b=input().split()
print(int(a)*int(b),int(a)*2+int(b)*2)

Solution (Python):
text = input()
num1,num2 = text.split()
area = int(num1)*int(num2)
peri = 2*(int(num1)+int(num2))
print(area, peri)

Solution (Python):
a,b = input().split()
print(int(a)*int(b),2*(int(a)+int(b)))

Solution (Python):
a, b = [int(i) for i in input().split()]
print(a*b, (a+b) * 2)

Solution (Python):
l = []
l = input().split()
l = list(map(int, l))
print(l[0]*l[1],2*(l[0]+l[1]))

Solution (Python):
t, y=input().split()

t=int(t)
y=int(y)

print(t*y , 2*t+2*y)

Solution (Python):
x, y = map(int,input().split())
print(x*y, (x+y)*2)

Solution (Python):
i = input().split()
a = int(i[0])
b = int(i[1])
num1 = a * b
num2 = 2 * (a + b)
print(num1, num2)

Solution (Python):
inp = input()

a, b = inp.split(' ')

inta = int(a)
intb = int(b)

area = inta * intb
circumference = inta * 2 + intb * 2

ac = [str(area), str(circumference)]

answer = ' '.join(ac)

print(answer)

Solution (Python):
ab_lst = list(map(int, input().split(" ")))

a = ab_lst[0]
b = ab_lst[1]

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

Solution (Python):
a, b = map(int, input().split())
print(a*b, 2*(a+b))

Solution (Python):
x = list(map(int, input().split()))

a = x[0] * x[1]
b = (x[0] *2) + (x[1] *2)
print(a, b)

Solution (Python):
a,b = map(int, input().split())
print(a*b, 2*a+2*b)

Solution (Python):
A,B = map(int,input().split())

print(A*B,2*(A+B))

Solution (Python):
i = input()
a,b = map(int,i.split())
print(str(a*b) + " " + str(a * 2 + b * 2))

Solution (Python):

width, height = input().split(' ')

s = int(width) * int(height)
l = int(width) * 2 + int(height) * 2

print(str(s) + ' ' + str(l))

Solution (Python):
a,b = raw_input().split()
a = int(a)
b = int(b)
print(a*b),((a+b)*2)

Solution (Python):
a,b = map(int, input().split())
print(a*b, 2*(a+b))

Solution (Python):
x = [int(i) for i in input().split(" ")]

print(str(x[0]*x[1]) + " " + str(2*(x[0]+x[1])))

Solution (Python):
a, b = map(int, input().split())
print(a*b, 2*a+2*b)

Solution (Python):
a,b=map(int, input().split())
print(a*b,2*(a+b))

Solution (Python):
a,b=map(int,raw_input().split())
print a*b,(a+b)*2

Solution (Python):
i = list(map(int, input().split()))
a = i[0]
b = i[1]
area = a*b
perimeter = 2*a + 2*b
print("{0} {1}".format(area, perimeter))

Solution (Python):
a,b = map(int,input().split())

def m():
    return a*b

def s():
    return 2*(a+b)

print(m(),s())

Solution (Python):
s = raw_input().split()
a = int(s[0])
b = int(s[1])

print(str(a*b) + " " + str(2*(a+b)))

Solution (Python):
a,b = [int(x) for x in input().split()]
print(a * b, (a+b) * 2)

Solution (Python):
A,B = map(int,input().split())

print(A*B,2*(A+B))

Solution (Python):
a = input()
a,b = a.split()
a = int(a)
b = int(b)
print(a*b,(a+b)*2)

Solution (Python):
a,b = input().split()
print(int(a)*int(b),(int(a)+int(b))*2)

Solution (Python):
a, b = map(int,input().split())
print(a * b,(a+b) * 2)

Solution (Python):
a = input()
(b,c) = a.split(' ')
b = int(b)
c = int(c)
print(str(b*c) + ' ' + str((b+c)*2))

Solution (Python):
a,b=map(int,input().split())
print(a*b,2*(a+b))

Solution (Python):
a,b = map(int,input().split());print(a*b,2*(a+b))

Solution (Python):
a, b = map(int, input().split(' '))
peri = a * 2 + b * 2
area = a * b
print(area, peri)

Solution (Python):
A,B = map(int,input().split())

print(A*B,2*(A+B))