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

ss=list(map(lambda x: int(x), s.split(" ")))

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

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

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

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

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

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

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

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

Solution (Python):


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

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

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

if 1 <= a <= 100:
    if 1<= b <= 100:

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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().strip().split(' '))
area = a*b
length = 2*(a+b)
print("%d %d" % (area, length))

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

print(str(z) + " " + str(x))

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

area = a * b
rec = a * 2 + b *2

print(area, rec)

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

Solution (Python):
import sys
m=sys.stdin.readline()
l=list(map(int,m.split()))
area=l[0]*l[1]
perimeter=l[0]+l[0]+l[1]+l[1]
print(area,perimeter,sep=" ")

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

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

Solution (Python):

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):

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

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,int(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())
s = a*b
k = a+b
l = 2*k

print(s,l)

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

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

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

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

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

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

Solution (Python):

x = [int(i) for i in input().split()]
print(x[0] * x[1], (x[0] + x[1]) * 2)

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

Solution (Python):
vertical, horizon = map(int, input().split(' '))

print(vertical * horizon, vertical * 2 + horizon * 2)

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

Solution (Python):
inputs = input().split()
int_inputs = []
for i in inputs:
    int_inputs.append(int(i))

print("{0} {1}".format(int_inputs[0] * int_inputs[1],  2*(int_inputs[0] + int_inputs[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())
print(a*b, 2*(a+b))

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

if (1 <= a and b <=100):
    print(str(a * b) + " " + str(2*a + 2*b))
else:
    print("error")

Solution (Python):

inp = input()
spl = inp.split(' ')
a = int(spl[0])
b = int(spl[1])
s = a * b
l = 2*a + 2*b
print(s, l)

Solution (Python):


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

if __name__ == "__main__":
    main()

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

Solution (Python):

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

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