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



Sample input:
3 5


Sample output:
15 16

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

print(str(s) + ' ' + str(l))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N,M = map(int,input().split())
print(N*M, 2*(N+M))

Submission status: Accepted

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

Submission status: Accepted

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

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

menseki = a*b
syuui = (a+b)*2

print("{} {}".format(menseki, syuui))

Submission status: Accepted

Solution code:
l, w = map(int, input().split())
area = l * w
rec = 2 * (l + w)
print("{} {}" .format(area, rec))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
I = input().split()
s = 2*(int(I[0])+int(I[1]))
m = int(int(I[0])*int(I[1]))
print(m,s)

Submission status: Accepted

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

Submission status: Accepted

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

m = int(a)*int(b)
n = 2*(int(a)+int(b))

print(m,n)

Submission status: Accepted

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

Submission status: Accepted

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


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

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!

(a,b) = map(int,input().split())
s = a*b
l = 2*a + 2*b
print(str(s)+" " + str(l))

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A,B = map(int, open(0).read().split())
print(A*B, A*2+B*2)

Submission status: Accepted

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

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

Submission status: Accepted

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

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

print(s, l)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#
# 1c
#


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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N, M = input().strip().split()
N, M = [int(N), int(M)]
print(N*M,2*(N+M))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
ans = []
ans.append(a*b)
ans.append(2*a + 2*b)
print(str(ans[0]) + ' ' + str(ans[1]))

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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()

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
L, R = map(int,input().split())
print(L*R,2*L+2*R)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

print(x,y)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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))
"""

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:

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

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

Submission status: Accepted

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

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

print(s,m)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

print(area, around)

Submission status: Accepted

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

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

Submission status: Accepted

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

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

print(area, length)

Submission status: Accepted

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

Submission status: Accepted

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

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

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

print(m, s)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
line = raw_input()
a, b = (int(x) for x in line.split())
print("{} {}".format(a*b, 2*(a+b)))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

x=int(x)
y=int(y)
area=x*y
perimeter = x+x+y+y
print(area,perimeter)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

Solution code:
import sys

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

if __name__=='__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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()

Submission status: Accepted

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

Submission status: Accepted

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



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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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


# coordinates
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)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = input()

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

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

Submission status: Accepted

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

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

print(c, d)

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
list = input().split()
w = int(list[0])
h = int(list[1])
print(w * h, (w + h) * 2)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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()

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
print(a*b, 2*(a+b))
# print(a, b) -> a b

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

if __name__ == "__main__":
    resolve()

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/python3
# coding: utf-8
a,b = map(int,input().split())

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

Submission status: Accepted

Solution code:
x = input()
x = [int(i) for i in x.split()]
a, b =x[0],x[1]
print(str(a*b)+" "+str(2*(a+b)))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

print(men, syu)

Submission status: Accepted

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