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, 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())

men = a*b
syu = 2*a + 2*b

print(men, syu)

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

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

Solution (Python):

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

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

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

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

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

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

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

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(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(f'{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+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(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+2*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())
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())
c=a*b
d=(a+b)*2
print(c,d)

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

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

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

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

Solution (Python):
x, y = [int(x) for x in input().split()]
m = x * y
l = 2*x + 2*y
print(f"{m} {l}")

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

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

area=int(a)*int(b)
total=2*(int(a)+int(b))

print(str(area)+' '+str(total))

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

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

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

Solution (Python):
import math
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):
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, (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+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(a * b, 2 * a + 2 * 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, (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+b)*2)

Solution (Python):
a, b = [int(arg) for arg in 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*2 + b*2)

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

area = int(a) * int(b)
long = int(a) * 2 + int(b) * 2

print(f"{area} {long}")

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):
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):
x =  input().split()
x = list(map(int, x))
y = x[0]*x[1]
z = 2 * (x[0]+x[1])
print(y, z)

Solution (Python):
x,y = input().split()  
x = int(x)
y = int(y)
pmt = x*2 + y*2
sqr = x*y
print('%d %d'%(sqr,pmt))

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

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

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

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


if __name__ == "__main__":
    recta()

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

Solution (Python):
import fileinput

a_b = input().split()
a = int(a_b[0])
b = int(a_b[1])

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

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

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

area = a * b

rectangle = 2*a + 2*b

print(str(area) + ' ',end='')
print(str(rectangle))

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

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

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

Solution (Python):
x = input().split()
i = int(x[0])
j = int(x[1])

print(i * j, (i * 2) + (j * 2))

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

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

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])
x = a * b
y = (a + b) * 2
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+b)*2)

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

Solution (Python):
from sys import stdin

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

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

print(area, length)

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

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


if __name__ == "__main__":
    main()

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

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

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

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

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

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

A = a * b

B = (a +  b) * 2

print(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 = list(map(int, input().split()))
area = a[0] * a[1]
outline = 2 * (a[0] + a[1])
result = list(map(str, [area, outline]))
print(result[0] + ' ' + result[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,(a+b)*2)

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

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

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

Solution (Python):


a,b = (int(x) for x in input().rstrip().split())

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

print(str(area) + " " + str(rap))

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

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

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

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

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

print(s, l)

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

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

Solution (Python):
H, W = map(int, input().split())

print(H*W,2*H+2*W)

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

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

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):
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 = input().split()
x = int(x)
y = int(y)
print("{} {}".format(x*y, 2*(x+y)))

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

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

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

Solution (Python):
a, b = map(int, 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):
x,y = input().split()
x = int(x)
y = int(y)
if x>=1 and y<=100:
    area = str(x*y)
    leng = str(x*2 + y*2)
    print(area + ' ' + leng)

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

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

l = 2*h + 2*w
a = h * w

print(str(a) + " " + str(l))

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

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

area = height * length

circuit = height * 2 + length * 2

print(area,end=' ')
print(circuit)

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

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

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

Solution (Python):
x = raw_input().split()

y = map(int,x)

a = y[0]
b = y[1]

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

print c, d

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

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

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

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

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

print(s, l)

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

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

Solution (Python):
array = input()

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

square = a * b

perimeter = (a + b) * 2


print(square, perimeter)

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

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

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

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

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

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

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

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

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

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])

i = [a*b,2*(a+b)]

print(i[0],i[1])

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

Solution (Python):
x = input()

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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):
print(' '.join((lambda a:[str(a[0]*a[1]),str(2*(sum(a)))])(list(map(int,input().split())))))

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

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

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

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

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

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

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

Solution (Python):
line = list(map(int,input().split()))
a = line[0]
b = line[1]
result1 = str(a*b)
result2 = str((a+b)*2)
print(result1 +" "+ result2)

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

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

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

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

Solution (Python):
import functools
import operator

line = input()
ab = [int(item) for item in line.split(" ")]

prod = functools.partial(functools.reduce, operator.mul)
print(str(prod(ab)) + " " + str(sum(ab) * 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(a*2+b*2))

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

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

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

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

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

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

Solution (Python):
import sys

def main():
  input = sys.stdin.readline().rstrip

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


if __name__ == '__main__':
  main()

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

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

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

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

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

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

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

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

print(s, r)

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

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

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

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

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

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

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

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

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

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

Solution (Python):
s=input()
x=s.split()
a=int(x[0])
b=int(x[1])
if 1<=a<=100 and 1<=b<=100:
    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):
s = input()
x = s.split()
a = int(x[0])
b = int(x[1])

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

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

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

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

n = input("")
n = n.split(" ")
a = int(n[0])
b = int(n[1])

print("{} {}".format(area(a, b), rectangle(a, b)))

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

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

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

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

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

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

Solution (Python):
s = input()
x = s.split()
a = int(x[0])
b = int(x[1])
if 1 <= a <= 100 and 1 <= a <= 100:
    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())
area = a * b
perimeter = (a + b) * 2
print(area, perimeter)

Solution (Python):
i = input()
a,b = map(int, i.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().strip().split()
a,b=[int(a),int(b)]
def area(a,b):
    return a*b
def length(a,b):
    return 2*a+2*b
print (area(a,b),length(a,b))

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

Solution (Python):
a, b= input().split(" ")
l=int(a)
h=int(b)
x = l*h
p= 2*(l+h)
print(f"{x} {p}")

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):
list = input().split(' ')
L = 2*(int(list[0])+int(list[1]))
S = int(list[0])*int(list[1])
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())
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+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(str(a*b) + ' ' + str(2*(a+b)))

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

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

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

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

print(f"{x} {y}")

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

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

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

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

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

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

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

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