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

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

Solution (Python):
for x in reduce(lambda x, y: [x * y, (x + y) * 2], map(int, raw_input().split())): print x,

Solution (Python):
for x in reduce(lambda x, y: [x * y, (x + y) * 2], [int(x) for x in raw_input().split()]): print x,

Solution (Python):
import sys

x, y = [int(x) for x in sys.stdin.readline().split()]
print x * y, (x + y) * 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, 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):
import sys
prm = sys.stdin.readline()
prm = prm.split()
a = int(prm[0])
b = int(prm[1])
men = a * b
syu = a + a + b + b
print men, syu

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

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

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

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

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

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

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

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

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

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

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

print(str(men) + " "  + str(shu))

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

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

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

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

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

Solution (Python):
data = input()
len = data.split()
ans0 = int(len[0]) * int(len[1])
ans1 = int(len[0]) *2 + int(len[1])*2
print('{0} {1}'.format(ans0, ans1))

Solution (Python):
input = raw_input()
s = int(input.split()[0])
l = int(input.split()[1])
ans_1 = s*l
ans_2 = 2*(s+l)

print str(ans_1)+" "+str(ans_2)

Solution (Python):
import sys

line = sys.stdin.readline()

tate, yoko = line.split(" ")

tate = int(tate)
yoko = int(yoko)

S = tate * yoko
T = 2 * (tate + yoko)

print '%d %d' % (S, T)

Solution (Python):
import sys

x = sys.stdin.readline()

a, b = x.split(" ")

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

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

print '%d %d' % (S,l)

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

Solution (Python):
import sys

line = sys.stdin.readline()
tate, yoko = line.split(" ")

S = int(tate) * int(yoko)
L = 2*int(tate) + 2*int(yoko)
print S, L

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

Solution (Python):
import sys

lst = sys.stdin.read().split(" ")

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

x = int(a[0])
y = int(a[1])
s = x * y
l = 2 * x + 2 * y
print s,l

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

Solution (Python):
umbers = []
n = raw_input()

numbers = n.split(" ")

for i in range(2):
	numbers[i] = int(numbers[i])

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

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

print "%d %d" % (l[0]*l[1], (l[0]+l[1])*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(a * b, a * 2 + b * 2)

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

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

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

Solution (Python):



var = raw_input().split()
rect = int(var[0]) * int(var[1])
length = int(var[0]) * 2 + int(var[1]) * 2

print str(rect) + " " + str(length)

Solution (Python):


input = map(int, raw_input().split())
height = input[0]
width = input[1]
area = height * width
circumference = (height + width) * 2
print(area),
print(circumference)

Solution (Python):


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

height, width = input
area = height * width
circumference = (height + width) * 2

print(" ".join(map(str, (area, circumference))))

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

Solution (Python):



height, width = map(int, raw_input().split())
print("%d %d") % (height * width, (height + width) * 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):
i = map(int, raw_input().split())
a=i[0]
b=i[1]
print a*b, (a+b)*2

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

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

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

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

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

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

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

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

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

Solution (Python):


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

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

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

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

Solution (Python):
from math import *
PI = 3.1415926535898
while True:
    try:
        a, b = map(float, raw_input().strip().split(' '))
        print "%d %d" % (a*b, 2*(a+b))
    except EOFError:
        break

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

print("{0} {1}".format(x * y, 2 * (x + y)))

Solution (Python):
import sys

a,b = map(int,sys.stdin.readline().split())
area = a*b
surround = 2*(a+b)
print("%d %d" % (area, surround))

Solution (Python):
import sys

line = sys.stdin.readline()
inp = []
for i in line.split(" "):
    inp.append(int(i))
print (inp[0]*inp[1], (inp[0]+inp[1])*2)

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

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

Solution (Python):


x, y = map(int, input().split())

area = x * y
circumference = 2 * x + 2 * y
print(area, circumference)

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

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

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

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

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

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

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

print ans1 , ans2

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

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

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

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

print l[0]*l[1] ,
print 2*l[0]+2*l[1]

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

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

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

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

b = a[0]*a[1]
c = a[0]*2+a[1]*2
print b , c

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

Solution (Python):




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

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

print "%s %s" % (str(s) ,str(l))

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

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

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

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

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

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

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

print num[0] * num[1], 2*num[0] + 2*num[1]

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

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

Solution (Python):

l = map(int, raw_input().split())
 
print "%d %d" % (l[0]*l[1], (l[0]+l[1])*2)

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

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

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

print s , r

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

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

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

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

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

Solution (Python):

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

print k[0]*k[1],k[0]*2+k[1]*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,2*a+2*b)

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

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

Solution (Python):
import sys
param=input().split()
menseki=int(param[0])*int(param[1])
nagasa=int(param[0])*2+int(param[1])*2
print(menseki,nagasa)

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

print str(S) + ' ' +  str(O)

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

Solution (Python):
x = raw_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(str(a*b)+ " "+str(2*(a+b)))

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):
tmp = raw_input().split()
a = int(tmp[0])
b = int(tmp[1])
s = a * b
l = 2 * (a+b)

print "%d %d" % (s, l)

Solution (Python):
input_nums = map(int,raw_input().split())
men = input_nums[0] * input_nums[1]
syu = (input_nums[0] * 2) + (input_nums[1] * 2)
print "{0} {1}".format(men,syu)

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

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

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

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

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

Solution (Python):


a, b = map(int, raw_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+b))

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

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

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

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

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

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

Solution (Python):


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

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

Solution (Python):


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

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

Solution (Python):

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

Solution (Python):
class Rectangle:
    def __init__(self, a, b):
        S = a * b
        L = a + a + b + b
        print(str(S) + ' ' + str(L))

if __name__ == "__main__":

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

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

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

Solution (Python):
import sys
input_line = sys.stdin.readline()
input_arr = input_line.split()
x = int(input_arr[0])
y = int(input_arr[1])
print str(x*y) + " " + str(2*x+2*y)

Solution (Python):
import sys
input_arr = map(int,sys.stdin.readline().split())
print input_arr[0]*input_arr[1], 2*(input_arr[0]+input_arr[1])

Solution (Python):

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

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

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

Solution (Python):

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

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

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

print m,gh

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

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

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

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

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

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

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

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

Solution (Python):
i = raw_input().strip().split()

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

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

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

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

def circ(higt, wide):
    a = higt
    b = wide
    return 2 * int(a) + 2 * int(b)


imput = raw_input().split()
menseki = area(int(imput[0]), int(imput[1]))
ensyu = circ(imput[0], imput[1])

print(str(menseki) + " " + str(ensyu))

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):
import sys

a, b = map(int, sys.stdin.readline().split())
print("%d %d" % (a * b, 2*a + 2*b))

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

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

print a*b, 2*a + 2*b

Solution (Python):
import re
num = list(map(int, re.split('\s+', input())))
print(num[0] * num[1], end=" ")
print((num[0] + num[1]) * 2)

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

Solution (Python):
def rectangle(a, b):
    S = a * b
    L = a*2 + b*2
    print(S, L)

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

rectangle(a, b)

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

Solution (Python):
















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




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

Solution (Python):
















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




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

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

Solution (Python):
InputNum = input().split()
tate = int(InputNum[0])
yoko = int(InputNum[1])
square = tate * yoko
length = 2* (tate + yoko)
print(square,length)

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

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

print a,b

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

x = int(x)
y = int(y)

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

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

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

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

Solution (Python):


def main():
  numbers = input().split(' ')
  height = int(numbers[0]) 
  width = int(numbers[1])
  print(height * width ,height * 2 + width * 2)
  return

if __name__ == '__main__':
  main()

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

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

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

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

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

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

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

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

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

Solution (Python):
n = raw_input()

a = n.split(" ")

b = int(a[0])

c = int(a[1])

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

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

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

print '{0} {1}'.format(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+b)*2)

Solution (Python):



l,b = map(int,raw_input().split())
print l*b , 2*(l+b)

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

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

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

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

Solution (Python):

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

menseki = a * b

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):


nums=list(map(int,input().split()))

a=nums[0]
b=nums[1]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):


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

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

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

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

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

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

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

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

Solution (Python):

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

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

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

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

Solution (Python):



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

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

Solution (Python):
import sys

data = sys.stdin.readline().strip().split(' ')
a = int(data[0])
b = int(data[1])
print('%d %d' % (a * b, (a + b) * 2))

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


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

print(c, d)

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

print S,
print L

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

a=intl[0]
b=intl[1]

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

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


print(a,b)

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

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

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

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

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

Solution (Python):
n=input().rstrip().split(" ")
w=int(n[0])
l=int(n[1])
print(w*l, 2*w+2*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):
x = raw_input()
a,b = x.strip().split(" ")
a = int(a)
b = int(b)
print "%d %d" % (a*b, (a*2)+(b*2))

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

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

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

Solution (Python):


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

if __name__=="__main__":
    a = input().split(" ")
    area,length = Rectangle(int(a[0]),int(a[1]))
    print(area,length)

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

print(a,b)

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

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

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

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

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

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

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

str = input()
numList = str.split(' ')
numList = [ int(x) for x in numList]

result = 1
length = 0
for x in numList:
    result *= x
    length += x

print(result,2*length)

Solution (Python):


def main():
  Num = input().split()
  area = int(Num[0]) * int(Num[1])
  sur = 2 * (int(Num[0])+int(Num[1]))

  print(area, sur)
 
if __name__ == '__main__':
  main()

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

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

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

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

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

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