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

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

c = a*b
d = 2*(a+b)
print(c,d)

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

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

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

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

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

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

print("%d %d"%(x*y,x*2+y*2))

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

Solution (Python):
import sys

l = input()
a, b = list(map(int, l.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 = (int(x) for x in input().split(' '))
s = a*b 
l = a*2 + b*2
print(s,l)

Solution (Python):
def rectangle(length, breadth):
    return str(length*breadth) + " " + str(2*length + 2*breadth)

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

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("{} {}".format(a*b, 2*(a+b)))

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

Solution (Python):

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

Solution (Python):
length = list(map(int, input().rstrip().split(" ")))
perimeter = sum(length) * 2
area = length[0] * length[1]
print(area, perimeter)

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):
from collections import deque
import sys

sys.setrecursionlimit(10 ** 6)
int1 = lambda x: int(x) - 1
p2D = lambda x: print(*x, sep="\n")

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

main()

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

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(A*B,2*(A+B))

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

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

menseki = l[0] * l[1]
shu = 2*(l[0]+l[1])
print(menseki, shu)

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

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

if 1 <= a and a <= 100:
    if 1 <= b and b <= 100:
        print(a*b, a*2+b*2)

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):
x=raw_input()
y=x.split(" ")
l=int(y[0])
d=int(y[1])
a=l*d
b=2*(l+d)
print(str(a)+str(" ")+str(b))

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

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

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

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

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

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

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

Solution (Python):

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

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

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

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

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

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

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

if a>=1 and b<=100:
    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 = (int(x) for x in input().split())
area = a*b
length = a*2+b*2

print(area, length)

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

if a>=1 and b<=100:
    print(a*b,a*2+b*2)

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

Solution (Python):



splittedStr = input().split() 




[tate,yoko] = list( map(lambda x:int(x),splittedStr) )



square = tate*yoko

circumference = tate+yoko+tate+yoko

print("{} {}".format(square,circumference))

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

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

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

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

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

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

Solution (Python):
import sys

[a, b] = list(map(int, input().split()))
print(str(a * b) + " " + str(2 * (a + b)))

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

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

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

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

Solution (Python):
def rectangle(h, w):
    area = h * w
    l = 2*(h+w)
    return (area, l)

(a, b) = map(int, input().split())
area, l = rectangle(a,b)
print(str(area)+' '+str(l))

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

Solution (Python):
import sys

a,b=(int(x) for x in input().split())
print(str(a * b) + ' ' + str(2 * (a + b)))

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

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

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

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

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

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

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

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

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

print(str(square_area) + ' ' + str(side_length))

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

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

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

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,input().split())
print('{} '.format(a*b),end='')
print(a*2+b*2)

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

area = num_ab[0] * num_ab[1]
circumference = (num_ab[0] + num_ab[1]) * 2

print(area, circumference)

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

Solution (Python):
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())

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

Solution (Python):
i = input()
a,b = list(map(int, i.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):
import sys
input = sys.stdin.readline

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


if __name__ == "__main__":
    main()

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

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

Solution (Python):
A, B = map(int, input().split())
area = A * B
perimeter = (A+B)*2
print(f'{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(str(a*b) + " " + str(a*2 + 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=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(x) for x in input().split())

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

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


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

Solution (Python):

l=input().split()

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

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

Solution (Python):


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

print(S, l)

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

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

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

Solution (Python):


L=input().split()

a=int(L[0])
b=int(L[1])
print(a*b,a+a+b+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):
def main():
    a, b = (int(i) for i in input().split())
    print(a*b,2*a + 2*b)

if __name__ == '__main__':
    main()

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

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

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

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

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

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

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

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

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

Solution (Python):
nums = [int(e) for e in input().split()]
print(str(nums[0]*nums[1])+ " " + str(nums[0]*2 + nums[1]*2))

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

s = a * b
p = 2 * (a + b)

print(s,p)

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

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

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

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

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

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

Solution (Python):
i = input()

width, height = map(int, i.split())

print(width*height, (width+height)*2)

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

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

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

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

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

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

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

print(s, l)

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

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

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

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

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

print(str(area) + " " + str(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(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 + 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*2+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(str(a * b) + " " + str(2 * a + 2 * b))

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

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

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

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

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

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

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

area = a[0] * a[1]
circle = a[0]*2 + a[1]*2

print(area, circle)

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

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

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

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

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

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

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

s=x*y
l=x+x+y+y

print(s, l)

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

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

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

Solution (Python):
val1, val2 = input().split(" ")

val1 = int(val1)
val2 = int(val2)

print("%d %d" %(val1 * val2, (val1 + val2) * 2))

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

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

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

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

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

Solution (Python):
def test():

	i = list(map(int,input().split()))
	print('%d %d' % (i[0]*i[1],2*(i[0]+i[1])))


if __name__ == "__main__":
	test()

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

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

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

Solution (Python):

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

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

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

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

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

menseki = a * b
syu = 2*(a + b)

print(str(menseki) + " " + str(syu))

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

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

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

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

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

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

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

Solution (Python):
import sys
data = sys.stdin.readline().split(' ')
nums = list(map(lambda x: int(x), data))
print(nums[0] * nums[1], (nums[0] + nums[1]) * 2)

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

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

h, w = l[0], l[1]

area = h * w
length = 2*h + 2*w

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

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*2+b*2
print(str(S)+' '+str(L))

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

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

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(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,2*(A+B))

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

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

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

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

s = a * b
lap = (a + b) * 2

print(s, lap)

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

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

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

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

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

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

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

print(a*b,end=' ')
print(2*a+2*b)

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

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
i=2*a+2*b
print(str(s)+' '+str(i))

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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):
x=input()
array=[]
array=x.split()

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


S=a*b

L=2*a+b*2

S=str(S)
L=str(L)

print(S+" "+L)

Solution (Python):
if __name__ == "__main__":
    a, b = map(lambda x: int(x), input().split())
    area = a * b
    perimeter = 2 * (a + b)
    print(area, perimeter)

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

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

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

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

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

print('%d %d' %(x*y,(x+y)*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):
a, b = map(int, input().split(' '))
print(f'{a * b} {2 * (a + b)}')

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

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

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

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

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

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

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

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

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

Solution (Python):
from functools import reduce 

from operator import mul
from operator import add

params = list(map(int, input().split()))
print(reduce(mul, params), 2 * reduce(add, params))

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

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

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

Solution (Python):
list=[int(i) for i in input().split()]
a=list[0]
b=list[1]
print(str(a*b) + " " + str(2*(a+b)))

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

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

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

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

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

Solution (Python):
a,b = (int(x) for x in input().split())
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):
I=input().split( )
a=int(I[0])
b=int(I[1])
print(f"{a*b} {2*(a+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):
def rect(a,b):
    return a*b, 2*(a+b)
n = input()
s = n.split()
a = int(s[0])
b = int(s[1])
area, perimeter = rect(a,b)
print(area,perimeter)

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

area = a * b

circumference =  (a + b) * 2

print(area, circumference)