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

Solution (Python):
import sys


def main():
    a, b = sys.stdin.readline().split(" ")
    a, b = int(a), int(b)
    print("{0} {1}".format(a*b, a*2 + b*2))
    return


if __name__ == '__main__':
    main()

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

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

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

Solution (Python):
s = input()
s = s.split()
n = []

for i in s:
    n.append(int(i))

print(n[0] * n[1],end = " ")
print(2 * n[0] + 2 * n[1])

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

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

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

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

Solution (Python):
length0 = input()

length = length0.split()
a = int(length[0])
b = int(length[1])

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

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

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

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

Solution (Python):

in1,in2 = map(int, input().split())
print(in1 * in2, in1 * 2 + in2 * 2)

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

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

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

def main():
    a,b = map(int,input().split())
    ar = area(a,b)
    pe = perimetro(a,b)
    return ar, pe

ar, pe = main()

print(ar, pe)

Solution (Python):


N = input().split()
area = 0
perimeter = 0

length=int(N[0])
breadth=int(N[1])

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

print(str(area)+" "+str(perimeter) )

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

Solution (Python):
inputs = input().split(' ')
height = int(inputs[0])
width = int(inputs[1])
area = height * width
length = height * 2 + width * 2
print(area, length)

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

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

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

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, 2*a+2*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(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):
s = input()
valiables = s.split() 

area = int(valiables[0]) * int(valiables[1])
perimeter = int(valiables[0])*2 + int(valiables[1])*2

print(str(area)+" "+str(perimeter))

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

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

Solution (Python):
dato=raw_input()
a=int(dato[:dato.find(' ')])
b=int(dato[dato.find(' '):])
A=str(a*b)
P=str(2*a+2*b)
print A+" "+P

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

print(str(w*h) + ' ' + str((w+h)*2))

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

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

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

Solution (Python):
row, col = [int(i) for i in input().rstrip().split(" ")]
area, leng = row * col, 2*(row+col)
print(area, leng)

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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):
import sys

a,b=map(int,sys.stdin.readline().split())
area=a*b;
peri=a+a+b+b;
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())

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

print(x,y)

Solution (Python):
data = [int(i) for i in input().split()]
print(f'{data[0] * data[1]} {data[0] * 2 + data[1] * 2}')

Solution (Python):
from sys import stdin

a, b = [int(x) for x in stdin.readline().rstrip().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 = input().split()
a = int(a)
b = int(b)
S = a*b
C = 2 * (a+b)

print(str(S) + " " + str(C))

Solution (Python):
p = input().split()
a = int(p[0])
b = int(p[1])
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())
z = x * y
m = x * 2 + y * 2

print('{0} {1}'.format(z,m))

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

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

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

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

l = list(map(int,l))

a = l[0]*l[1]
b = 2*(l[0]+l[1])

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

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

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

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

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

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

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

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

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

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

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

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

print(r,l)

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):

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

S = a*b
L = 2*(a+b)
print(S,L)

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

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

Solution (Python):
def rect(a,b):
    return a*b, 2*(a+b)
n =input()
x =n.split()
a =int(x[0])
b =int(x[1])

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

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

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

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

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

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

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

Solution (Python):
def rect(a,b):
    return a*b, 2*(a+b)
n =input()
x =n.split()
a =int(x[0])
b =int(x[1])

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

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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):
inArray = input().split(' ')
length = int(inArray[0])
width = int(inArray[-1])
area = str(length * width)
circuit = str((length * 2) + (width * 2))
print(area + " " + circuit)

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

Solution (Python):
num1,num2 = map(int,input().split(" "))

men = num1*num2
leng = (num1+num2)*2

print(men,leng)

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

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

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

area = int(nums[0]) * int(nums[1])
length_cirle = int(nums[0]) * 2 + int(nums[1]) * 2
print(str(area) + " " + str(length_cirle))

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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):
from sys import stdin

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

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

print(area, perimeter)

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

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

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

print("%d %d" % (num[0]*num[1],(num[0]+num[1])*2))

Solution (Python):
length,breadth =(int(x) for x in  input().split()) 
area = length * breadth
perimeter = (length * 2) + (breadth*2)
print(str(area) + ' ' + str(perimeter))

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

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

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

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

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

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

Solution (Python):
n = map(int, raw_input().split())

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

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, raw_input().split())
print ("%d %d" % (a * b, 2 * (a + b)))

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

print str(x*y) + " " + str(2*x+2*y)

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

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

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

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

Solution (Python):
x = list(map(lambda a : int(a),input().split(" ")))
print("%d %d" % (x[0]*x[1], sum(x)*2))

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

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

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

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

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

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

Solution (Python):
x_y = raw_input( ).split(" ")
m = int(x_y[0]) * int(x_y[1])
z = int(x_y[0]) * 2 + int(x_y[1])*2
print str(m) + " " + str(z)

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

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

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

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

Solution (Python):
import sys
input_line = map(int, sys.stdin.readline().split())
perimeter = (input_line[0] + input_line[1]) * 2
area = input_line[0] * input_line[1]
print "%d %d" % (area, perimeter)

Solution (Python):
import sys

for line in sys.stdin.readlines():
    a, b = map(int, line.strip().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, end=' ')
print(2 * (a + b))

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

Solution (Python):

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

Solution (Python):
params = input().rstrip().split(' ')
square = int(params[0]) * int(params[1])
length = (int(params[0]) + int(params[1])) * 2

print(square, length)

Solution (Python):
params = input().rstrip().split(' ')
square = int(params[0]) * int(params[1])
length = (int(params[0]) + int(params[1])) * 2

print(square, length)

Solution (Python):
params = input().rstrip().split(' ')
square = int(params[0]) * int(params[1])
length = (int(params[0]) + int(params[1])) * 2

print(square, length)

Solution (Python):
params = input().rstrip().split(' ')
square = int(params[0]) * int(params[1])
length = (int(params[0]) + int(params[1])) * 2
 
print(square, length)

Solution (Python):
(tate, yoko) = [int(x) for x in input().rstrip().split(' ')]
square = tate * yoko
length = (tate + yoko) * 2

print(square, length)

Solution (Python):
(tate, yoko) = input().rstrip().split(' ')

square = int(tate) * int(yoko)
length = (int(tate) + int(yoko)) * 2

print(square, length)

Solution (Python):
(tate, yoko) = [int(x) for x in input().rstrip().split(' ')]
square = tate * yoko
length = (int(tate) + int(yoko)) * 2

print(square, length)

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

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

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

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

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

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

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

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

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

Solution (Python):
tate,yoko =raw_input().split()
tate = int(tate)
yoko = int(yoko)
sq = tate * yoko
leng = 2*tate + 2*yoko
sq = str(sq)
leng = str(leng)
print sq + " " + leng

Solution (Python):
n = input().split(" ")
a, b = int(n[0]), int(n[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):
import sys

def main():
    for line in iter(sys.stdin.readline, ""):
        a = line.rstrip("\n").split(" ")
        b = int(a[0])
        c = int(a[1])
        print (str(b*c) + " " + str(2*b+2*c))
     
if __name__ == "__main__":
    main()

Solution (Python):

import sys

ab=sys.stdin.readline()
rect=ab.split( ' ' )
for i in range(2):
	rect[i]=int( rect[i])
print( "{} {}".format( rect[0]*rect[1], rect[0]*2+rect[1]*2) )

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

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

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

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

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

Solution (Python):
import sys
 
(a, b) = [int(i) for i in sys.stdin.readline().split()]
print("%d %d" % (a * b, (a + 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(x*y, 2*(x+y))

Solution (Python):


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

Solution (Python):
if __name__ == '__main__':
    a, b = [int(i) for i in input().split()]
    S, L = a*b, 2*(a+b)
    print(S, L)

Solution (Python):



x, y = map(int, input().split())
s = x*y
l = 2*(x + y)
print(s, l)

Solution (Python):
a = raw_input()
for i, b in enumerate(a.split()):
	if i==0:
		x=int(b)
	else:
		y=int(b)
print x*y,x*2+y*2

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

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

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

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

Solution (Python):


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

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

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

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

Solution (Python):
w,l = map(int,raw_input().split())
print w*l, w+w+l+l

Solution (Python):

class itp1_1c:
    def cal(self,a,b):
        self.a=a
        self.b=b
        print str(a*b)+" "+str(2*a+2*b)
        
if __name__=="__main__":
    ip=map(int,raw_input().split(" "))
    run=itp1_1c()
    run.cal(ip[0],ip[1])

Solution (Python):
import sys

a, b = [ int( val ) for val in sys.stdin.readline().split( " " ) ]
print( "{} {}".format( a*b, a*2+b*2 ) )

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

Solution (Python):
def prod(int_list):
	p = 1
	for i in int_list:
		p *= i
	return p
	
int_ary = [int(s) for s in input().split(" ")]
print(prod(int_ary), 2 * sum(int_ary))

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

Solution (Python):


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

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

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

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

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

Solution (Python):
print ' '.join(map(str, ([a*b if i == 0 else 2*a+2*b  for i, a, b in [(i,) + a for i, a in enumerate((zip(*[[int(i),int(i)] for i in raw_input().split()])))]])))

Solution (Python):
import sys

def main():
    arr = sys.stdin.readline().rstrip("\n").split(" ")
    a = int(arr[0])
    b = int(arr[1])
    print a*b , a*2+b*2
    
main()

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

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

Solution (Python):


input_nums = raw_input().rstrip().split()
a, b = [int(x) for x in input_nums]
menseki = a * b
syutyo = 2 * (a + b)
print menseki, syutyo

Solution (Python):
if __name__ == "__main__":
    num_list =map( int, raw_input().split())
    print num_list[0] * num_list[1],
    print 2 * ( num_list[0] + num_list[1] )

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):



in_str = input()
in_sp = in_str.split(' ')
a = int(in_sp[0])
b = int(in_sp[1])

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

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

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

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

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

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

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

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

Solution (Python):

arr = map(int, raw_input().split())

print("%d %d" % (arr[0] * arr[1], arr[0] * 2 + arr[1] * 2))

Solution (Python):



h, w = map(int, raw_input().split())
print h * w, (h + w) * 2