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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

print(area, length)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#長方形のタテ、ヨコの長さを受け取り、
#面積と周を計算して返すプログラム

splittedStr = input().split() #3 4

#リスト内包表記
#tate,yoko = [int(str) for str in splittedStr]
#高階関数を用いて
[tate,yoko] = list( map(lambda x:int(x),splittedStr) )


#面積を計算
square = tate*yoko
#周の長さを計算
circumference = tate+yoko+tate+yoko
#出力
print("{} {}".format(square,circumference))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
l = input()
a, b = [int(i) for i in l.split()]
print(a*b, (a+b)*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:
import sys

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def rectangle(h, w):
    area = h * w
    l = 2*(h+w)
    return (area, l)

(a, b) = map(int, input().split())
area, l = rectangle(a,b)
print(str(area)+' '+str(l))

Submission status: Accepted

Solution code:
import sys

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
str=input()
s_list=str.split(" ")
a=int(s_list[0])
b=int(s_list[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:
l = list(map(int,input().split()))
square_area = l[0]*l[1]
side_length = (l[0]+l[1])*2

print(str(square_area) + ' ' + str(side_length))

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
ab = input()
num_ab = list(map(int, ab.split(" ")))

area = num_ab[0] * num_ab[1]
circumference = (num_ab[0] + num_ab[1]) * 2

print(area, circumference)

Submission status: Accepted

Solution code:
i = input().split()
i1 = int(i[0]) * int(i[1])
i2 = int(i[0]) + int(i[1])
print(i1 ,i2 * 2)

Submission status: Accepted

Solution code:
x = input().split(" ")
a = int(x[0])
b = int(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+b))

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:
import sys
input = sys.stdin.readline

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


if __name__ == "__main__":
    main()

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
A, B = map(int, input().split())
area = A * B
perimeter = (A+B)*2
print(f'{area} {perimeter}')

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

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

Submission status: Accepted

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


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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a=[int(i) for i in input().split()]

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

Submission status: Accepted

Solution code:
# 17D8104010B 宮本拓輝 2019/9/26

L=input().split()

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

Submission status: Accepted

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

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
nums = [int(e) for e in input().split()]
print(str(nums[0]*nums[1])+ " " + str(nums[0]*2 + nums[1]*2))

Submission status: Accepted

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

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

print(s,p)

Submission status: Accepted

Solution code:
a, b = map(lambda e: int(e), input().strip().split())
print(f"{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:
a,b=map(eval,input().split())
print(a*b,2*(a+b))

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
i = input()

width, height = map(int, i.split())

print(width*height, (width+height)*2)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

print(s, l)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

print(h*w,int(2)*(h+w))

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

Submission status: Accepted

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

Submission status: Accepted

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

area = a[0] * a[1]
circle = a[0]*2 + a[1]*2

print(area, circle)

Submission status: Accepted

Solution code:
li = list(map(int, input().split(' ')))
a = li[0]
b = li[1]

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3.5
a,b = (int(x) for x in 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, end="")
print(" ", end="")
print( (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().strip().split())

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

Submission status: Accepted

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

s=x*y
l=x+x+y+y

print(s, l)

Submission status: Accepted

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

Submission status: Accepted

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


# 面積ｓ
s = i[0] * i[1]


# 周の長さ
# 縦が２つ　横が２つ
l = i[0]*2 + i[1]*2

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
val1, val2 = input().split(" ")

val1 = int(val1)
val2 = int(val2)

print("%d %d" %(val1 * val2, (val1 + val2) * 2))

Submission status: Accepted

Solution code:
ab = input().split(" ", 2)
a = int(ab[0])
b = int(ab[1])
if 0 < a and b < 101:
  print(str(a * b) + " " + str((a + b) * 2))

Submission status: Accepted

Solution code:
def test():

	i = list(map(int,input().split()))
	print('%d %d' % (i[0]*i[1],2*(i[0]+i[1])))


if __name__ == "__main__":
	test()

Submission status: Accepted

Solution code:
# coding: utf-8

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

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:

l=input().split()
l=list(map(int, l))
a=(l[0]*l[1])
b=(l[0]*2+l[1]*2)
print("{} {}".format(a,b))

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

print(str(menseki) + " " + str(syu))

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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
data = sys.stdin.readline().split(' ')
nums = list(map(lambda x: int(x), data))
print(nums[0] * nums[1], (nums[0] + nums[1]) * 2)

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

h, w = l[0], l[1]

area = h * w
length = 2*h + 2*w

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

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

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

print(s, lap)

Submission status: Accepted

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

x = int(a)
y = int(b)
a = x*y
b = (x+y)*2
print(a,b)

Submission status: Accepted

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

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

Submission status: Accepted

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

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:
test = input().split()
a,b = [int(test) for test in test]
area = a * b
length = 2 * (a + b)
print(str(area) +" " + str(length))

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x=input()
array=[]
array=x.split()

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


S=a*b

L=2*a+b*2

S=str(S)
L=str(L)

print(S+" "+L)

Submission status: Accepted

Solution code:
if __name__ == "__main__":
    a, b = map(lambda x: int(x), input().split())
    area = a * b
    perimeter = 2 * (a + b)
    print(area, perimeter)

Submission status: Accepted

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

Submission status: Accepted

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

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

print('%d %d' %(x*y,(x+y)*2))

Submission status: Accepted

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

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:
x = input().rstrip().split(' ')
a = int(x[0])
b = int(x[1])
s = a * b
 
l = 2 * (a + b)
 
print(f'{s} {l}')

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from functools import reduce 

from operator import mul
from operator import add

params = list(map(int, input().split()))
print(reduce(mul, params), 2 * reduce(add, params))

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
list=[int(i) for i in input().split()]
a=list[0]
b=list[1]
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 = [int(i) for i in input().split()]
print(A[0]*A[1], sum(A)*2)

Submission status: Accepted

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

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:
l = input().split()

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

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

Submission status: Accepted

Solution code:
a,b = (int(x) for x in 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, (a+b)*2)

Submission status: Accepted

Solution code:
I=input().split( )
a=int(I[0])
b=int(I[1])
print(f"{a*b} {2*(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:
def rect(a,b):
    return a*b, 2*(a+b)
n = input()
s = n.split()
a = int(s[0])
b = int(s[1])
area, perimeter = rect(a,b)
print(area,perimeter)

Submission status: Accepted

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

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

Submission status: Accepted

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

area = a * b

circumference =  (a + b) * 2

print(area, circumference)

Submission status: Accepted

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

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

Submission status: Accepted

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

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

print("%d %d" % (area, length))

Submission status: Accepted

Solution code:
rectangle = input().split(' ')
length = int(rectangle[0])
breadth = int(rectangle[1])

area = length * breadth
perimeter = length * 2 + breadth * 2

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding:utf-8
if __name__ == '__main__':
    a,b = input().split()
    a = int(a)
    b = int(b)
    print(("{0} {1}").format(a*b,2*(a+b)))

Submission status: Accepted

Solution code:
input = input().split()
# input = '3 5'.split()

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

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

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

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
print("{} {}".format(a*b, 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()))
s = [a*b, (a+b)*2]
joined_s = " ".join(map(str, s))
print(joined_s)

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

Submission status: Accepted

Solution code:
[val1, val2] = input().split(" ")
val1 = int(val1)
val2 = int(val2)
if val1 >= 1 and val2 <=100:
    a = int(val1 * val2)
    b = int((val1 + val2) *2)
    a = str(a)
    b = str(b)
    print(a + " " + b)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
[x,y] = input().split(" ")

area=(int)(x)*(int)(y)
sen=(int)(x)*2+(int)(y)*2

print(area,end=" ")
print(sen)

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
S = a*b
W = a*2+b*2
S = str(S)
W = str(W)
ans = " ".join([S,W])
print(ans)

Submission status: Accepted

Solution code:
ls=[]
a,b=map(int,input().split())
w=a*b
h=2*a+2*b

ls.append(w)
ls.append(h)
print(*ls)

Submission status: Accepted

Solution code:
[w, h] = input().split(" ")

w = int(w)
h = int(h)

print(w * h, w * 2 + h * 2)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def area(a,b):
    return a*b
    
def perimeter(a,b):
    return (a+b)*2
    
s = input()
a,b = s.split()
a = int(a)
b = int(b)

print(area(a,b), perimeter(a,b))

Submission status: Accepted

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

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

Submission status: Accepted

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

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

print(length*breadth, length*2 + breadth*2)

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
# スペース区切りの整数の入力
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())
print(a*b, 2*(a+b))

Submission status: Accepted

Solution code:
if __name__ == '__main__':
	data = input().split()
	area = int(data[0]) * int(data[1])
	rectangle = int(data[0])*2 + int(data[1]) * 2
	print(str(area)+" "+str(rectangle))

Submission status: Accepted

Solution code:
x = input()

new = x.split(" ")
a = int(new[0])
b = int(new[1])

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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