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):
a, b = map(int, input().split())
print(a * b, (a + b) * 2)

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

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,(a+b)*2)

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

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

Solution (Python):

l = input().split()

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


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

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

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

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

print("%d %d" % (area, length))

Solution (Python):
rectangle = input().split(' ')
length = int(rectangle[0])
breadth = int(rectangle[1])

area = length * breadth
perimeter = length * 2 + breadth * 2

print(str(area) + ' ' + str(perimeter))

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

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

Solution (Python):

if __name__ == '__main__':
    a,b = input().split()
    a = int(a)
    b = int(b)
    print(("{0} {1}").format(a*b,2*(a+b)))

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


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

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

print("{0} {1}".format(area, perimeter))

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

Solution (Python):
a, b = map(int, input().split())
print("{} {}".format(a*b, 2*a+2*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,(a+b)*2)

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

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(a*b,(a+b)*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+2*b)

Solution (Python):
[val1, val2] = input().split(" ")
val1 = int(val1)
val2 = int(val2)
if val1 >= 1 and val2 <=100:
    a = int(val1 * val2)
    b = int((val1 + val2) *2)
    a = str(a)
    b = str(b)
    print(a + " " + b)

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

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

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

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

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

area=(int)(x)*(int)(y)
sen=(int)(x)*2+(int)(y)*2

print(area,end=" ")
print(sen)

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
W = a*2+b*2
S = str(S)
W = str(W)
ans = " ".join([S,W])
print(ans)

Solution (Python):
ls=[]
a,b=map(int,input().split())
w=a*b
h=2*a+2*b

ls.append(w)
ls.append(h)
print(*ls)

Solution (Python):
[w, h] = input().split(" ")

w = int(w)
h = int(h)

print(w * h, w * 2 + h * 2)

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

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, end = " ")
print(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 = 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):
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+b) * 2)

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

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

print(area(a,b), perimeter(a,b))

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

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,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):
l = input().split()
a = int(l[0])
b = int(l[1])
print(a*b,2*a+2*b)

Solution (Python):

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

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

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

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

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

Solution (Python):
length,breadth=map(int,input().split())

print(length*breadth, length*2 + breadth*2)

Solution (Python):


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

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

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

Solution (Python):
if __name__ == '__main__':
	data = input().split()
	area = int(data[0]) * int(data[1])
	rectangle = int(data[0])*2 + int(data[1]) * 2
	print(str(area)+" "+str(rectangle))

Solution (Python):
x = input()

new = x.split(" ")
a = int(new[0])
b = int(new[1])

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

Solution (Python):
a,b = list(map(int, input().split()))
print("{} {}".format(a*b,a*2+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 , (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,(a+b)*2)

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

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

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

Solution (Python):
a,b = (int(x) for x in input().split())
c = a*b
d = 2*(a+b)
print (str(c)+" "+str(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, 2*(a+b))

Solution (Python):
"""
Rectangle
"""
def main():
    
    a,b = (int(i) for i in input().split())
    print(a*b,(a+b)*2)
        
if __name__ == "__main__":
    main()

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

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

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

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

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

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

s = a * b
c = a*2 + b*2
print(str(s) + " " + str(c))

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()) 
area = a*b
perimeter = 2*(a+b)
print("%d %d" % (area, perimeter))

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

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

Solution (Python):


x = []
x = input().split()
a=int(x[0])
b=int(x[1])
print(str(a*b)+" "+str(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
perimeter=2*(a+b)
print("%d %d" % (area,perimeter))

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):
l,m=map(int,input().split())
print(l*m,2*(l+m))

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

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

Solution (Python):
x = input()
list = [int(s) for s in x.split() if s.isdigit()]
[a, b] = list
c = a * b
c = str(c)
d = " "
e = 2 * a + 2 * b
e = str(e)
ans = c + d + e
print(ans)

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

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

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

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

area = a * b
perimeter = a * 2 + b * 2
print(area, perimeter)

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

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

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

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

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

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

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

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

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

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

Solution (Python):
iipt=lambda:int(input())
miipt=lambda:list(map(int, input().split()))

a, b = miipt()
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())

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

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

Solution (Python):
args = input().split(' ')
a = args[0]
b = args[1]

print('%s %s' % ((int(a) * int(b)), (int(a) + int(b)) * 2))

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

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

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

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

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

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

print(f'{a * b} {(a + b) * 2}')

Solution (Python):

i = input()




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




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

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


print(menseki,shu)

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

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

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

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

Solution (Python):
c=input()
csp=c.split()
print(int(csp[0])*int(csp[1]), (int(csp[0])+int(csp[1]))*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 + b) * 2)

Solution (Python):
x = input()
A = x.split(" ")

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

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

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

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

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

Solution (Python):
x , y = (int(i) for i in raw_input().split())

print x*y , 2*x + 2*y

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

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

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 = map(int, input().split())
print(a * b, (a + b) * 2)

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

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

Solution (Python):
sizes = [int(i) for i in input().split()]
height = sizes[0]
width = sizes[1]
 
square = height * width
length = (height +  width) * 2
 
print(square, length)

Solution (Python):

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

Solution (Python):
tate,yoko = map(int,input().split())


menseki = tate * yoko
syuu = 2*tate + yoko*2


print(menseki, syuu)

Solution (Python):



def main():
    
    a,b = (int(x) for x in input().split())
    area = a * b
    perimeter = 2*a + 2*b
    print(area,perimeter)


if __name__ == '__main__':
    main()

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

Solution (Python):


import sys


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

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

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

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

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

Solution (Python):
x, y = map(int, input().split())
print("{0} {1}".format(x*y, x*2 + y*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):
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):
arg = input().split()
 
arg = [int(v) for v in arg]

s = arg[0]*arg[1]
r = (arg[0] + arg[1])*2

print(str(s) + ' ' + str(r))

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

Solution (Python):

data = input().split()

S = int(data[0]) * int(data[1])
L = int(data[0])*2 + int(data[1])*2

print(S,L)

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

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

Solution (Python):
a,b=(int(x) for x in input().split())
s=int(a*b)
l=int((a*2)+(b*2))
print("{0} {1}".format(a*b, a*2+b*2))

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

Solution (Python):
num = input().split()
squ = int(num[0]) * int(num[1])
len = 2 * ( int(num[0]) + int(num[1]))
print(squ,len)

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

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

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

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

area = int(y[0])*int(y[1])
length = 2*int(y[0]) + 2*int(y[1])

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

Solution (Python):





if __name__ == '__main__':
    a, b = map(int, raw_input().split())
    print a * b, 2 * (a + b)

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

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

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

print(i[0]*i[1], i[0]*2+i[1]*2)

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

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):
a,b=map(int,input().split())
print(f"{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,(A+B)*2)

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

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

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

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

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())
perimeter = 2*(a+b)
area = a*b
print(area,perimeter)

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

Solution (Python):
l = input().split()
a, b = map(int, l)
print(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, (a + b) * 2)

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

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

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

Solution (Python):
input_line = input()

input_list = input_line.split()
a = int(input_list[0])
b = int(input_list[1])

ans1 = a*b
ans2 = a*2 + b*2

print(str(ans1) + " " + str(ans2))

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

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

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

Solution (Python):

line = input().rstrip().split()
a = int(line[0])
b = int(line[1])
print(str(a*b) + " " + str(2*a+2*b))

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

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

print(area, peri)

Solution (Python):
w, h = map(int, input().split())
print(f'{w*h} {w*2+h*2}')

Solution (Python):



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

Solution (Python):
a, b = input().split()
a = int(a)
b = int(b)
print('%d %d'%(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())
print("{} {}".format(a*b, 2*a + 2*b))

Solution (Python):
x=input().split()
a=int(x[0])
b=int(x[1])
if 1<=a and b<=100:
    print(a*b,a*2+b*2)

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

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


area = a * b
circum = (a + b) * 2
print(str(area) + " " + str(circum))

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):
c, d = map(int, input().split())

print(str(c*d)+" "+ str((c+d)*2))

Solution (Python):
ab = input().split(' ')
a = int(ab[0])
b = int(ab[1])
menseki = a * b
hen = (a + b) *2
print(str(menseki) + ' ' + str(hen))

Solution (Python):
list = input().split()
a = int(list[0])
b = int(list[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("{} {}".format(a*b, (a+b)*2))

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

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

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

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):
x, y = map(int, input().split())

print(x*y, 2*x + 2*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+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+B)*2)

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

Solution (Python):
model = input().split()
x,y = int(model[0]),int(model[1])
print('{0} {1}'.format(x*y,2*x+2*y))

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):
s= input().split(" ")

a = int(s[0])*int(s[1])

b =  int(s[0])*2 + int(s[1])*2

print(a,b)

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

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

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

Solution (Python):
x, y = [int(n) for n in input().split()]
area = x * y
cir  = (x + y) * 2
print("%d %d" % (area, cir))

Solution (Python):
num_list = input().split()
num1 = int(num_list[0])
num2 = int(num_list[1])
print(str(num1*num2) + ' ' + str(2*num1 + 2*num2))

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

Solution (Python):
a=input()
n=a.split()
p=n[0]
q=n[1]
x=int(p)
y=int(q)
print(str(x*y)+" "+str(x*2+y*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):
class Rectangle(object):
    def __init__(self, length:int, breadth:int) -> None:
        if length < 1:
            raise ValueError('Paramter length is lower than 1.')
        if length > 100:
            raise ValueError('Paramter length is larger than 100.')
        if breadth < 1:
            raise ValueError('Paramter breadth is lower than 1.')
        if breadth > 100:
            raise ValueError('Paramter breadth is larger than 100.')

        self.length = length
        self.breadth = breadth

    def get_area(self) -> int:
        return self.length * self.breadth

    area = property(get_area)

    def get_perimeter(self) -> int:
        return 2 * (self.length + self.breadth)

    perimeter = property(get_perimeter)

if __name__ == "__main__":
    in_str = input()
    param = in_str.split()
    length = int(param[0])
    breadth = int(param[1])

    rect = Rectangle(length, breadth)
    print('{0} {1}'.format(rect.area, rect.perimeter))

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

print(s, end=" ")
print(l)

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

Solution (Python):
import sys

input_list = input().split(' ')
x = int(input_list[0])
y = int(input_list[1])

print('{} {}'.format(str(x * y), str((x + y) * 2)))

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 + b))

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

Solution (Python):
nums = [int(s) for s in input().split()]
area = nums[0] * nums[1]
peri = 2 * (nums[0] + nums[1])
print('{} {}'.format(area, peri))

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

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

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

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+2*b)

Solution (Python):
a,b =[int(i) for i 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):
import sys

a, b = (int(n) for n in sys.stdin.read().strip().split())
print(f'{a * b} {2 * (a + b)}')

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

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

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

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

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 = map(int, raw_input().split())
print (a[0] * a[1]) , 2 * (a[0] + a[1])

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

Solution (Python):
list = list(map(int, input().split()))
a = list[0] * list[1]
b = (list[0] + list[1]) * 2
print(str(a) + " " + str(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, 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 = [int(x) for x in input().split()]
print(a*b, 2*(a+b) )

Solution (Python):
x, y = map(int, input().split())
print(x*y, 2*x+2*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,2*(a+b))

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

Solution (Python):
x = input()
y = x.split(" ")
tate = y[0]
yoko = y[1]
print(int(tate) * int(yoko), int(tate) * 2 + int(yoko) * 2, sep=' ')

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

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

s=a*b
l=2*a+2*b
print(str(s)+" "+str(l))

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

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

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

print(area, perimeter)

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

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

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

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

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

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

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

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

Solution (Python):
a,b=[int(x) for x in input().split()]
print ((a*b),(a+b)*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 = 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= [int(x) for x in input().split()]
print (a*b,(a+b)*2
)

Solution (Python):
data = input().split()
x = int(data[0])
y = int(data[1])

area = x*y
rect = (x+y)*2

print(area,end=" ")
print(rect)

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 = 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()]
print(a*b,a+a+b+b
)

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

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

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

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

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

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

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

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

Solution (Python):
a,b=[int(x)for x in 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):
a, b = [int(x) for x in input().split()]
print (a * b, a * 2 + b * 2)

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,b =[int(x) for x in input().split()]
print(a*b,(a+b)*2)

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

Solution (Python):
import fileinput


__author__ = 'Kyoro'


def main():
    for a, b in read_next():
        print(area(a, b), perimeter(a, b))


def read_next():
    for line in fileinput.input():
        tokens = line.strip().split()
        yield list(map(int, tokens))


def area(a, b):
    return a * b


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


if __name__ == '__main__':
    main()

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

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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):
a, b = [int(x) for x in input().split()]
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 =[int(x) for x in input().split()]
print (b*a,a+a+b+b)

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

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

Solution (Python):

try:
     (a,b)  =  map(int,input().split())
except:
    exit

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

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

print(s, r)

Solution (Python):
a, b = list(map(int, input().split()))
print('{} {}'.format(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(f'{a*b} {2*a+2*b}')

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