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

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

Submission status: Accepted

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

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

print(r,l)

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def rect(a,b):
    return a*b, 2*(a+b)
n =input()
x =n.split()
a =int(x[0])
b =int(x[1])

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

Submission status: Accepted

Solution code:
def rect(a,b):
    return a*b,2*(a+b)  #Area, Perimeter
s = input()
x = s.split()
a = int(x[0])
b = int(x[1])

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
def rect(a,b):
    return a*b, 2*(a+b)
n =input()
x =n.split()
a =int(x[0])
b =int(x[1])

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

Submission status: Accepted

Solution code:
def rec(a,b):
    return a*b,(a+b)*2
S = input()
X = S.split()
a = int(X[0])
b = int(X[1])

area,perimeter = rec(a,b)
print("{} {}".format(area,perimeter))

Submission status: Accepted

Solution code:
x=input().split()
a,b=int(x[0]),int(x[1])
L=2*a+2*b
S=a*b
print("%d %d"%(S,L))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = input().split()
a, b = int(x[0]),int(x[1])
S = a*b
L = a*2 + b*2
print("%d %d" %(S,L))

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
inArray = input().split(' ')
length = int(inArray[0])
width = int(inArray[-1])
area = str(length * width)
circuit = str((length * 2) + (width * 2))
print(area + " " + circuit)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
num1,num2 = map(int,input().split(" "))

men = num1*num2
leng = (num1+num2)*2

print(men,leng)

Submission status: Accepted

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

Submission status: Accepted

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

area = int(nums[0]) * int(nums[1])
length_cirle = int(nums[0]) * 2 + int(nums[1]) * 2
print(str(area) + " " + str(length_cirle))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#coding utf-8
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("{} {}".format(a*b, (a+b)*2))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# ITP1_1_C-Rectangle
# Python3 2018.7.2 bal4u
 
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())
print(a*b, 2*a+2*b)

Submission status: Accepted

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

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,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:
from sys import stdin

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

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

print(area, perimeter)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
length,breadth =(int(x) for x in  input().split()) 
area = length * breadth
perimeter = (length * 2) + (breadth*2)
print(str(area) + ' ' + str(perimeter))

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
xs = map(int,raw_input().split())
a = xs[0]
b = xs[1]
print a*b, 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,raw_input().split())
print a*b,a+a+b+b

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

Submission status: Accepted

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

print str(x*y) + " " + str(2*x+2*y)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = list(map(lambda a : int(a),input().split(" ")))
print("%d %d" % (x[0]*x[1], sum(x)*2))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b = [int(x) for x in input().split(' ')]
area = a * b
length = 2 * a + 2 * b
print("%s %s" % (area, length))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x_y = raw_input( ).split(" ")
m = int(x_y[0]) * int(x_y[1])
z = int(x_y[0]) * 2 + int(x_y[1])*2
print str(m) + " " + str(z)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
input_line = map(int, sys.stdin.readline().split())
perimeter = (input_line[0] + input_line[1]) * 2
area = input_line[0] * input_line[1]
print "%d %d" % (area, perimeter)

Submission status: Accepted

Solution code:
import sys

for line in sys.stdin.readlines():
    a, b = map(int, line.strip().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, end=' ')
print(2 * (a + b))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#coding utf-8
x,y = map(int, input().split())
print(x*y, 2*(x+y))

Submission status: Accepted

Solution code:
params = input().rstrip().split(' ')
square = int(params[0]) * int(params[1])
length = (int(params[0]) + int(params[1])) * 2

print(square, length)

Submission status: Accepted

Solution code:
params = input().rstrip().split(' ')
square = int(params[0]) * int(params[1])
length = (int(params[0]) + int(params[1])) * 2
 
print(square, length)

Submission status: Accepted

Solution code:
(tate, yoko) = [int(x) for x in input().rstrip().split(' ')]
square = tate * yoko
length = (tate + yoko) * 2

print(square, length)

Submission status: Accepted

Solution code:
(tate, yoko) = input().rstrip().split(' ')

square = int(tate) * int(yoko)
length = (int(tate) + int(yoko)) * 2

print(square, length)

Submission status: Accepted

Solution code:
(tate, yoko) = [int(x) for x in input().rstrip().split(' ')]
square = tate * yoko
length = (int(tate) + int(yoko)) * 2

print(square, length)

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
tate,yoko =raw_input().split()
tate = int(tate)
yoko = int(yoko)
sq = tate * yoko
leng = 2*tate + 2*yoko
sq = str(sq)
leng = str(leng)
print sq + " " + leng

Submission status: Accepted

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

def main():
    for line in iter(sys.stdin.readline, ""):
        a = line.rstrip("\n").split(" ")
        b = int(a[0])
        c = int(a[1])
        print (str(b*c) + " " + str(2*b+2*c))
     
if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
#coding:utf-8
import sys

ab=sys.stdin.readline()
rect=ab.split( ' ' )
for i in range(2):
	rect[i]=int( rect[i])
print( "{} {}".format( rect[0]*rect[1], rect[0]*2+rect[1]*2) )

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

Solution code:
import sys
 
(a, b) = [int(i) for i in sys.stdin.readline().split()]
print("%d %d" % (a * b, (a + b) * 2))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#coding:utf-8
#1_1_C 2015.3.6
a,b = input().split()
area = int(a) * int(b)
circumference = (int(a) + int(b)) * 2
print(area,circumference)

Submission status: Accepted

Solution code:
if __name__ == '__main__':
    a, b = [int(i) for i in input().split()]
    S, L = a*b, 2*(a+b)
    print(S, L)

Submission status: Accepted

Solution code:
#!/usr/bin/env python
# -*- coding: utf-8 -*-

x, y = map(int, input().split())
s = x*y
l = 2*(x + y)
print(s, l)

Submission status: Accepted

Solution code:
a = raw_input()
for i, b in enumerate(a.split()):
	if i==0:
		x=int(b)
	else:
		y=int(b)
print x*y,x*2+y*2

Submission status: Accepted

Solution code:
n=map(int,raw_input().split())
print n[0]*n[1],(n[0]+n[1])*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 * 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:
# -*- coding: utf-8 -*-

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

print "%d %d" % (a*b, 2*(a+b))

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
w,l = map(int,raw_input().split())
print w*l, w+w+l+l

Submission status: Accepted

Solution code:
# -encoding:utf-8
class itp1_1c:
    def cal(self,a,b):
        self.a=a
        self.b=b
        print str(a*b)+" "+str(2*a+2*b)
        
if __name__=="__main__":
    ip=map(int,raw_input().split(" "))
    run=itp1_1c()
    run.cal(ip[0],ip[1])

Submission status: Accepted

Solution code:
import sys

a, b = [ int( val ) for val in sys.stdin.readline().split( " " ) ]
print( "{} {}".format( a*b, a*2+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:
def prod(int_list):
	p = 1
	for i in int_list:
		p *= i
	return p
	
int_ary = [int(s) for s in input().split(" ")]
print(prod(int_ary), 2 * sum(int_ary))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#coding:UTF-8

n = map(int,raw_input().split())
print n[0]*n[1] , 2*(n[0]+n[1])

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
print ' '.join(map(str, ([a*b if i == 0 else 2*a+2*b  for i, a, b in [(i,) + a for i, a in enumerate((zip(*[[int(i),int(i)] for i in raw_input().split()])))]])))

Submission status: Accepted

Solution code:
import sys

def main():
    arr = sys.stdin.readline().rstrip("\n").split(" ")
    a = int(arr[0])
    b = int(arr[1])
    print a*b , a*2+b*2
    
main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8

input_nums = raw_input().rstrip().split()
a, b = [int(x) for x in input_nums]
menseki = a * b
syutyo = 2 * (a + b)
print menseki, syutyo

Submission status: Accepted

Solution code:
if __name__ == "__main__":
    num_list =map( int, raw_input().split())
    print num_list[0] * num_list[1],
    print 2 * ( num_list[0] + num_list[1] )

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b = map(int,raw_input().split())
print "%d %d"% (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:
a,b=input().split(' ')
a = int(a)
b= int(b)

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

in_str = input()
in_sp = in_str.split(' ')
a = int(in_sp[0])
b = int(in_sp[1])

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

arr = map(int, raw_input().split())

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

Submission status: Accepted

Solution code:
#! /usr/bin/env python
# -*- coding: utf-8 -*-

h, w = map(int, raw_input().split())
print h * w, (h + w) * 2

Submission status: Accepted

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

Submission status: Accepted

Solution code:
input = raw_input().split(" ")
height = int(input[0])
width = int(input[1])
print height * width, (height + width) * 2

Submission status: Accepted

Solution code:
for x in reduce(lambda x, y: [x * y, (x + y) * 2], map(int, raw_input().split())): print x,

Submission status: Accepted

Solution code:
for x in reduce(lambda x, y: [x * y, (x + y) * 2], [int(x) for x in raw_input().split()]): print x,

Submission status: Accepted

Solution code:
import sys

x, y = [int(x) for x in sys.stdin.readline().split()]
print x * y, (x + y) * 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:
import sys
prm = sys.stdin.readline()
prm = prm.split()
a = int(prm[0])
b = int(prm[1])
men = a * b
syu = a + a + b + b
print men, syu

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
input=raw_input().split()
a1=int(input[0])
a2=int(input[1])
print "%d %d"%(a1*a2,2*(a1+a2))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
l = map(int,raw_input().split() )
men = l[0] * l[1]
shu = (l[0] + l[1]) * 2

print(str(men) + " "  + str(shu))

Submission status: Accepted

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

print str(x * y) + ' ' + str(2 * x + 2 * y)

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
data = input()
len = data.split()
ans0 = int(len[0]) * int(len[1])
ans1 = int(len[0]) *2 + int(len[1])*2
print('{0} {1}'.format(ans0, ans1))

Submission status: Accepted

Solution code:
input = raw_input()
s = int(input.split()[0])
l = int(input.split()[1])
ans_1 = s*l
ans_2 = 2*(s+l)

print str(ans_1)+" "+str(ans_2)

Submission status: Accepted

Solution code:
import sys

line = sys.stdin.readline()

tate, yoko = line.split(" ")

tate = int(tate)
yoko = int(yoko)

S = tate * yoko
T = 2 * (tate + yoko)

print '%d %d' % (S, T)

Submission status: Accepted

Solution code:
import sys

x = sys.stdin.readline()

a, b = x.split(" ")

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

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

print '%d %d' % (S,l)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

line = sys.stdin.readline()
tate, yoko = line.split(" ")

S = int(tate) * int(yoko)
L = 2*int(tate) + 2*int(yoko)
print S, L

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

lst = sys.stdin.read().split(" ")

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

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

Submission status: Accepted

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

Submission status: Accepted

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

width = int(x[0])
height = int(x[1])

area = width * height
perimeter = width * 2 + height * 2

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

Submission status: Accepted

Solution code:
num = raw_input()
num = num.split()
a = int(num[0])
b = int(num[1])

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
b = raw_input()
a = b.split()
#print a[1]
x = int(a[0])
y = int(a[1])
s = x * y
l = 2 * x + 2 * y
print s,l

Submission status: Accepted

Solution code:
umbers = []
n = raw_input()

numbers = n.split(" ")

for i in range(2):
	numbers[i] = int(numbers[i])

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
l = map(int,raw_input().split())
print "%d %d" %(l[0]*l[1],(l[0]+l[1])*2)

Submission status: Accepted

Solution code:
#!/usr/bin/env python
# -*- coding: utf-8 -*-

var = raw_input().split()
rect = int(var[0]) * int(var[1])
length = int(var[0]) * 2 + int(var[1]) * 2

print str(rect) + " " + str(length)

Submission status: Accepted

Solution code:
# encoding:utf-8

input = map(int, raw_input().split())
height = input[0]
width = input[1]
area = height * width
circumference = (height + width) * 2
print(area),
print(circumference)

Submission status: Accepted

Solution code:
# encoding:utf-8

input = map(int, raw_input().split())

height, width = input
area = height * width
circumference = (height + width) * 2

print(" ".join(map(str, (area, circumference))))

Submission status: Accepted

Solution code:
num = map(int, raw_input().split(' '))
print num[0] * num[1], 2 * (num[0] + num[1])

Submission status: Accepted

Solution code:
#! /usr/bin/env python
# -*- coding: utf-8 -*-

height, width = map(int, raw_input().split())
print("%d %d") % (height * width, (height + width) * 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:
i = map(int, raw_input().split())
a=i[0]
b=i[1]
print a*b, (a+b)*2

Submission status: Accepted

Solution code:
i = map(int, raw_input().split())
a=i[0]
b=i[1]
print("%d %d" % (a*b, (a+b)*2))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
L=map(int, raw_input().split())
print L[0]*L[1],
print (L[0]+L[1])*2

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from math import *
PI = 3.1415926535898
while True:
    try:
        a, b = map(float, raw_input().strip().split(' '))
        print "%d %d" % (a*b, 2*(a+b))
    except EOFError:
        break