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

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

Submission status: Accepted

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

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=(int(x) for x in input().split())

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
print(f'{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())
c=a*b
d=2*a+2*b
print(c,d)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:


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

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

Submission status: Accepted

Solution code:
x, y = [int(x) for x in input().split()]
m = x * y
l = 2*x + 2*y
print(f"{m} {l}")

Submission status: Accepted

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

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=raw_input().split()

area=int(a)*int(b)
total=2*(int(a)+int(b))

print(str(area)+' '+str(total))

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
if 1 <= a <= 100 and 1 <= b <= 100:
    print(a * b, 2 * (a + b))

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import math
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:
# coding: utf-8
# Your code here!

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*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 = [int(arg) for arg 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*2 + b*2)

Submission status: Accepted

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

area = int(a) * int(b)
long = int(a) * 2 + int(b) * 2

print(f"{area} {long}")

Submission status: Accepted

Solution code:
x =  input().split()
x = list(map(int, x))
y = x[0]*x[1]
z = 2 * (x[0]+x[1])
print(y, z)

Submission status: Accepted

Solution code:
x,y = input().split()  #半角スペースorTABor改行で文字列を分割する
x = int(x)
y = int(y)
pmt = x*2 + y*2
sqr = x*y
print('%d %d'%(sqr,pmt)) #変換指定子 %d 整数  %f 浮動小数点数　文字列%s

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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


if __name__ == "__main__":
    recta()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import fileinput

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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:
# coding: utf-8
# Your code here!
a,b=map(int,input().split())
print(a*b,(a+b)*2)

Submission status: Accepted

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

area = a * b

rectangle = 2*a + 2*b

print(str(area) + ' ',end='')
print(str(rectangle))

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = input().split()
i = int(x[0])
j = int(x[1])

print(i * j, (i * 2) + (j * 2))

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
from sys import stdin

a, b = map(int, stdin.readline().split())

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

print(area, length)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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


if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# coding: utf-8

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

Submission status: Accepted

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

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:
# coding:utf-8

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

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

print(str(area) + " " + str(rap))


# <?php

# fscanf(STDIN,"%d %d",$a,$b);

# $area = $a * $b;
# $rap = 2 * ($a + $b);

# echo $area . " " . $rap . PHP_EOL;

# ?>

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

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

print(s, l)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
H, W = map(int, input().split())

print(H*W,2*H+2*W)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
    K,S = map(int,input().split())
    print(K*S,K*2+S*2)
    
 
 
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=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(str(area) + " " + str(perimeter))

Submission status: Accepted

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

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:
# coding: utf-8
# Your code here!

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

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

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

Submission status: Accepted

Solution code:
x,y = input().split()
x = int(x)
y = int(y)
if x>=1 and y<=100:
    area = str(x*y)
    leng = str(x*2 + y*2)
    print(area + ' ' + leng)

Submission status: Accepted

Solution code:
h,w = map(int,input().split())

l = 2*h + 2*w
a = h * w

print(str(a) + " " + str(l))

Submission status: Accepted

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

Submission status: Accepted

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

area = height * length

circuit = height * 2 + length * 2

print(area,end=' ')
print(circuit)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
print('{0} {1}'.format(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+b))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = raw_input().split()

y = map(int,x)

a = y[0]
b = y[1]

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

print c, d

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

print(s,l)

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
array = input()

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

square = a * b

perimeter = (a + b) * 2


print(square, perimeter)

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

i = [a*b,2*(a+b)]

print(i[0],i[1])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = input()

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

Submission status: Accepted

Solution code:
x=raw_input().split()
y=map(int,x)
a=y[0]
b=y[1]

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

print  c,d

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
print(' '.join((lambda a:[str(a[0]*a[1]),str(2*(sum(a)))])(list(map(int,input().split())))))

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

print(result_a,result_b)

Submission status: Accepted

Solution code:
i=input()

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

Submission status: Accepted

Solution code:
base = input()
term = base.split(' ')
x = int(term[0])
y = int(term[1])
area = x * y
round_line = (x + y) * 2
print("{} {}".format(area,round_line))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import functools
import operator

line = input()
ab = [int(item) for item in line.split(" ")]

prod = functools.partial(functools.reduce, operator.mul)
print(str(prod(ab)) + " " + str(sum(ab) * 2))

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
l = input().split()
a = int(l[0])
b = int(l[1])
c = a*b
d = 2*(a+b)
print(c,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 = input().split()
a = int(a)
b = int(b)
area = a * b
shuui = (a + b) * 2
print(area, shuui)

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import sys

def main():
  input = sys.stdin.readline().rstrip

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


if __name__ == '__main__':
  main()

Submission status: Accepted

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

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

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

Submission status: Accepted

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

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

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

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

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
r = 2*a + 2*b

print(s, r)

Submission status: Accepted

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

print((n * m), (n * 2 + m * 2))

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

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

print("{} {}".format(area(a, b), rectangle(a, b)))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b=input().strip().split()
a,b=[int(a),int(b)]
def area(a,b):
    return a*b
def length(a,b):
    return 2*a+2*b
print (area(a,b),length(a,b))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
# 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

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

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

print('{} {}'.format(s, l))

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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:
list = input().split(' ')
L = 2*(int(list[0])+int(list[1]))
S = int(list[0])*int(list[1])
print(str(S) +" "+ str(L))

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

Submission status: Accepted

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

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

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

l = a * b

q = 2 * (a + b)

print('{} {}'.format(l, q))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
import copy
from copy import deepcopy
import sys
import fractions
# import numpy as np
from functools import reduce
# import statistics
import heapq
import collections
import itertools
sys.setrecursionlimit(100001)

# input = sys.stdin.readline
# sys.setrecursionlimit(10**6)

# ===FUNCTION===

def getInputInt():
    inputNum = int(input())
    return inputNum


def getInputListInt():
    outputData = []
    inputData = input().split()
    outputData = [int(n) for n in inputData]

    return outputData


def getSomeInputInt(n):
    outputDataList = []
    for i in range(n):
        inputData = int(input())
        outputDataList.append(inputData)

    return outputDataList


def getSomeInputListInt(n):
    inputDataList = []
    outputDataList = []
    for i in range(n):
        inputData = input().split()
        inputDataList = [int(n) for n in inputData]
        outputDataList.append(inputDataList)

    return outputDataList


# ===CODE===

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

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

print(area, perimeter)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

VerticalLength = int(a)
HorizontalLength = int(b)
area = VerticalLength * HorizontalLength
# sutringArea = str(area)
circumference = 2 * (VerticalLength + HorizontalLength)


print(area, circumference)

Submission status: Accepted

Solution code:
# coding: utf-8
n = list(map(int,input().split()))
print(n[0]*n[1],(n[0]+n[1])*2)

Submission status: Accepted

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

s = x[0]*x[1]
l = x[0]*2+x[1]*2

print(f"{s} {l}")

Submission status: Accepted

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

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

area = a*b

l = 2*(a+b)

print(area, l)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
t,y=(int(x) for x in input().split())
men=t*y
syu=2*(t+y)
print(men,syu)

Submission status: Accepted

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

Submission status: Accepted

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

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