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

var=input()
var=var.split()
a=int(var[0])
b=int(var[1])
if(0<a<100 and 0<b<100):
    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):
a,b=(int(x) for x in input().split())

area = int(a * b)
per = 2*(a+b)
print(area, per)

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

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, open(0).read().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())

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

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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):
W, H = map(int,input().split())
area = W * H
peri = (W + H) * 2
print(' '.join([str(area), str(peri)]))

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

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

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

for i in range(len(num)):
    num[i] = int(num[i])

area = num[0] * num[1]
square = (num[0] + num[1]) * 2
print(area, square)

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

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

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

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

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

Solution (Python):





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


if __name__ == '__main__':
    main()

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

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

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

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

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

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

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

Solution (Python):
str_a, str_b = input().split()

a = int(str_a)
b = int(str_b)

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

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

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

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

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

Solution (Python):
def solve():
    a, b = map(int, input().split())
    ans = list(map(str, [a*b, (a+b)*2]))
    print(" ".join(ans))
    return 0

if __name__ == "__main__":
    solve()

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

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

print(x*y,x*2+y*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):
apply  = lambda fn: lambda data: fn(data)
display = apply(print)

rectangle = lambda a, b: [a * b, (a + b) * 2]

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

result = rectangle(a, b)
display(' '.join(map(str, result)))

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):
a=input().split(" ")
length=int(a[0])
width=int(a[1])
if (length >= 1) & (width <= 100):
    print(str(length * width) + " " + str((length * 2) + (width * 2)))
else: print("Number out of range")

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())
Area = a*b
Perimeter = 2*(a+b)
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+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())
print(A*B,2*A+2*B)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

"""
別解
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 = [int(_) for _ in input().split()]
print(a * b, 2 * (a + b))

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

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

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

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

Solution (Python):

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

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

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

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

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

print(s,m)

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

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

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

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

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

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

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

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

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

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

print(str(c)+" "+str(d))

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

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

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

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

print(str(c)+" "+str(d))

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

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

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

print(str(c)+" "+str(d))

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

c=a*b
d=a+a+b+b

print(str(c)+" "+str(d))

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

c=a*b
d=a+a+b+b

print(str(c)+" "+str(d))

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

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

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

print(str(c)+" "+str(d))

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

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

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

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

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

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

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

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

Solution (Python):
import sys
from collections import deque

def I(): return int(sys.stdin.readline().rstrip())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))
def S(): return sys.stdin.readline().rstrip()
def LS(): return list(sys.stdin.readline().rstrip().split())

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

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

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

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

print(l*s,2*l+2*s)

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

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

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

print(area, around)

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

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

print(area, length)

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

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

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

a = i[0]
b = i[1]

m = a * b
s = a * 2 + b * 2

print(m, s)

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

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

Solution (Python):
line = raw_input()
a, b = (int(x) for x in line.split())
print("{} {}".format(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(" "))
area = a * b
length = (a + b) * 2
print(area, length)

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

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

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

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

Solution (Python):
data = input().split(' ')
w = int(data[0])
h = int(data[1])
area = w * h
length = (w + h) * 2
print(area,length)

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

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

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

x=int(x)
y=int(y)
area=x*y
perimeter = x+x+y+y
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,A*2+B*2)

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

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

print(str(area)+' '+str(perimeter))

Solution (Python):
import sys

def main():
    i = input()
    a, b = list(map(int, i.split()))
    print("{} {}".format(a * b, 2 * (a + b)))
    

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

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

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

Solution (Python):
import sys
 
sys.setrecursionlimit(10 ** 8)
input = sys.stdin.readline
 
def main():
    a,b = map(int, input().split())
    s = a*b
    l = 2*a + 2*b
    print(s,l)
 
if __name__ == '__main__':
    main()

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

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



print(width*height,end=" ")
print((width+height)*2)

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

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

Solution (Python):
import math
import string
import collections
from collections import Counter
from collections import deque
from decimal import Decimal


def readints():
    return list(map(int, input().split()))


def nCr(n, r):
    return math.factorial(n)//(math.factorial(n-r)*math.factorial(r))


def has_duplicates2(seq):
    seen = []
    for item in seq:
        if not(item in seen):
            seen.append(item)
    return len(seq) != len(seen)


def divisor(n):
    divisor = []
    for i in range(1, n+1):
        if n % i == 0:
            divisor.append(i)
    return divisor



dx = [-1, -1, -1, 0, 0, 1, 1, 1]
dy = [-1, 0, 1, -1, 1, -1, 0, 1]
a, b = map(int, input().split())
x = a*b
y = (a+b)*2
print(x, y)

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

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

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

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

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

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

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

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

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

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

Solution (Python):
x = input()

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

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

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

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

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

Solution (Python):
str_ = input()
x, y = str_.split()
x = int(x)
y = int(y)
lap = 2*x + 2*y
area = x * y
print('{} {}'.format(area,lap))

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

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

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

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

Solution (Python):
l, w = list(map(int, input().split(' ')))
print(f"{l * w} {(l + w) * 2}")

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

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

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

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

Solution (Python):
def main():
    width, height = map(int, input().split())
    area = width * height
    track_length = (width + height) * 2

    print(f"{area} {track_length}", end="\n")


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

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

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

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

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

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

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

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

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

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

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

to_split = s.split()
a, b = to_split

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

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

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

x = area(a, b)
y = lap_length(a, b)
print(x, y)

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

Solution (Python):
def resolve():
    x,y = map(int,input().split())
    s = x * y
    l = 2 * (x + y)
    print(f"{s} {l}")

if __name__ == "__main__":
    resolve()

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

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

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

Solution (Python):


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

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

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

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

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

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

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

Solution (Python):

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

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

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

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



def calc_area(a, b):
    return a*b

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

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

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