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

Submission status: Accepted

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

Submission status: Accepted

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

print(str(l[0]*l[1])+" "+str((l[0]+l[1])*2))

Submission status: Accepted

Solution code:
if __name__ == '__main__':
    key_in = input()
    data = key_in.split(' ')

    height = int(data[0])
    width = int(data[1])
    area = height * width
    perimeter = 2 * height + 2 * width
    print('{0} {1}'.format(area, perimeter))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
list = input().split(' ')

x = int(list[0])

y = int(list[1])

x1 = x * y
y1 = (x + y) * 2

print(str(x1) + ' ' + str(y1))

Submission status: Accepted

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

Submission status: Accepted

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

if (a >= 1) or (b <= 100):
    num = str(a * b)
    length = str((a * 2) + (b * 2))
    print(num + " " + length, end="\n")
else:
    pass

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Here your code !
a,b = list(map(int, input().split()))

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

Submission status: Accepted

Solution code:
str = raw_input()
a = str.split(' ')

n1 = int(a[0])
n2 = int(a[1])

print n1 * n2, (n1 + n2) * 2

Submission status: Accepted

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

Submission status: Accepted

Solution code:
l = 0
l = input().split()
men = 0
syu = 0
unko = int(l[0])
tinko = int(l[1])
men = unko*tinko
syu = unko*2+tinko*2
print(men,syu)

Submission status: Accepted

Solution code:
lis=0
S=0
L=0
lis=input().split()
S=int(lis[0])*int(lis[1])
L=int(lis[0])*2+int(lis[1])*2
print(S,L)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
data = input().split()
w = int(data[0])
h = int(data[1])

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

x = input()
k = x.split(' ')
a = int(k[0])
b = int(k[1])

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

print(area,length)

Submission status: Accepted

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

print(a*b, end=" ")
print(2*(a+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, y = input().split()
print(int(x)*int(y), (int(x)+int(y))*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,raw_input().split())
s = a * b
shu = a * 2 + b * 2
fmt = "{s} {shu}"
s = fmt.format(s = s,shu = shu)
print(s)

Submission status: Accepted

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

Submission status: Accepted

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

s = a * b
shu = a * 2 + b * 2
fmt = "{s} {shu}"
s = fmt.format(s = s,shu = shu)
print(s)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
data=list(map(int, input().split(' ')))
n=m=0
for v in data:
    n = v if n==0 else n*v
    m += 2*v
print(n,m)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import fileinput

for line in fileinput.input():
    tokens = list(map(int, line.strip().split()))
    a, b = tokens[0], tokens[1]
    print(a*b, 2*(a+b))

Submission status: Accepted

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

area = data[0] * data[1]
circumference = 2 * (data[0] + data[1])
print area, circumference

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!usr/bin/env python3

def area_circumference():
    a, b = [int(i) for i in input().split()]
    return a, b

def main():
    a, b = area_circumference()
    print(str(a*b) + ' ' + str((a+b) * 2))

if __name__ == '__main__':
    main()

Submission status: Accepted

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

print a*b,a*2+b*2

Submission status: Accepted

Solution code:
#!usr/bin/env python3

def string_two_numbers_spliter():
    a, b = [int(i) for i in input().split()]
    return a, b


def main():
    a, b = string_two_numbers_spliter()
    print(str(a*b) + ' ' + str((a+b) * 2))


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def area(ls):
    return ls[0] * ls[1]

def per(ls):
    return (2 * ls[0]) + (2 * ls[1])


if __name__ == '__main__':
    data = list(map(int, input().split()))
    s = area(data)
    l = per(data)
    print(s, l)

Submission status: Accepted

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

Submission status: Accepted

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


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

Submission status: Accepted

Solution code:
input_str = input()

split_list = input_str.split()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Here your code !
# -*- coding:utf-8 -*-
import sys

def init():
    data = []
    try:
        while(True):
            line = raw_input()
            if not line: break
            data.append(tuple(line.split(" ")))
    except EOFError:
        pass
    return data

def valid(n):
    return (1 <= n <= 100)

def main():
    hight, width = init().pop()
    hight = int(hight)
    width = int(width)
    if valid(hight) and valid(width):
        print "%d %d" % (hight*width, hight*2+width*2)
    else:
        print "Error / Invalid input (%d,%d)" % (hight, width)

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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 = list(map(int, input().split()))
print(A*B, A*2 + B*2)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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

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

print (area, length)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
inp = input().split()
if len(inp) >= 2:
    a = int(inp[0])
    b = int(inp[1])
    print("{} {}".format(a * b, (a + b) * 2))
else:
    print("Input illegal.")

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Here your code !
line = input().split(" ")
a = int(line[0])
b = int(line[1])
menseki = a * b
nagasa = a + a + b + b
print(menseki , nagasa)

Submission status: Accepted

Solution code:
x,y = [int(i) for i in input().split()]
area = x*y
length = (x*2)+(y*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:
#!/usr/bin/env python3

import sys

if __name__ == '__main__':
	in_str = sys.stdin.readline()
	_a, _b = in_str.split(' ')
	a = int(_a )
	b = int(_b )
	area = a*b
	roun = a*2+b*2
	print('{} {}'.format( area, roun ))

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

Submission status: Accepted

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

import sys
import os
import pprint

#fd = os.open('ITP1_1_C.txt', os.O_RDONLY)
#os.dup2(fd, sys.stdin.fileno())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8

list = input().rstrip().split(" ")

area = int(list[0])*int(list[1])
length = int(list[0])*2 + int(list[1])*2

print(str(area) + " " + str(length))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
x, y = [int(i) for i in input().split()]

s = x * y
l = (x + y) * 2
print(str(s)+" "+ str(l))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Here your code !

def func():
    try:
        line=input().rstrip()
        list=line.split(" ")
        a=int(list[0])
        b=int(list[1])
    except:
        print("input error")
        return -1
    
    print(str(a*b)+" "+str(a*2+b*2))

func()

Submission status: Accepted

Solution code:
#coding:UTF-8
s = input().split()
cir = 2*(int(s[0])+int(s[1]))
area = int(s[0])*int(s[1])
print (area,cir)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:

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

Submission status: Accepted

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

p=2*h+2*b
a=h*b

print(str(a)+" "+str(p))

Submission status: Accepted

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

Submission status: Accepted

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

a = int(data[0],10) * int(data[1],10)
p = 2 * (int(data[0],10) + int(data[1],10))

print(a, p)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math


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

a = int(a)
b = int(b)
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:
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('{0} {1}'.format(a*b,2*(a+b)))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main(arg):
    numbers = [int(x) for x in arg.split(" ")]
    s = numbers[0] * numbers[1]
    p = (numbers[0] + numbers[1]) * 2
    result = "{} {}".format(s,p)
    return result


if __name__ == '__main__':
    print(main(input()))

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

s = a*b
c = a*2 + b*2

print(s, c)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#coding:utf-8

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# import sys
#
# if __name__ == '__main__':
#     print(sys.argv[1]**3)

x, y = map(int, input().split())
s = x * y
l = 2 * (x + y)
print(' '.join([str(s), str(l)]))
pass

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

a,b = map(int, sys.stdin.readline().rstrip().split(' '))
print("{} {}".format(a*b,(a+b)*2))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#coding: utf-8

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

S = a[0] * a[1]
l = 2 * a[0] + 2 * a[1]
print str(S)+" "+str(l)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b=map(int,raw_input().split())
if 0<=b<=100 and 0<=b<=100:
    print a*b,
    print a*2+b*2
else:
    pass

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
l = input().strip().split()
sq = int(l[0])*int(l[1])
ar = (int(l[0]) + int(l[1])) * 2
print("{0} {1}".format(sq, ar))

Submission status: Accepted

Solution code:
#!/bin/usr/python

x,y = (int(i) for i in input().split())

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

Submission status: Accepted

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

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:
i = j = 0
n = ''
m = ''


line = input()

while line[i] != ' ':
    n = n + line[i]
    i += 1
    
while i < len(line):
    m = m + line[i]
    i += 1
    
n = int(n)
m = int(m)

print(n*m,end=' ')
print(2*n+2*m)

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

print("{0} {1}".format(c,d))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#! python3

a, b = [int(x) for x in input().strip().split(' ')]
print(a*b, 2*(a+b))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

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

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

Submission status: Accepted

Solution code:
x,y=[int(i) for i in input().split()]
s=x*y
l=2*x+2*y
print(s,l)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
if __name__ == '__main__':
	a, b = map(int, input().split())
	area = a * b
	circumference = 2*a + 2*b
	print(area, circumference)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

menseki = a*b
nagasa = a*2 + b*2

print(menseki, nagasa)

Submission status: Accepted

Solution code:
import re

given = input("")

result = re.search(r"([0-9]+)\s([0-9]+)", given)

a = int(result.group(1))
b = int(result.group(2))

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

print(x,y)

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def temp(val):
    [a,b]=val.split()
    a = int(a)
    b = int(b)
    print("{} {}".format(a*b, 2*a+2*b))

temp(input())

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

print S, l

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x,y = [int(i) for i in input().split()]
m = x * y
r = 2 * x + 2 * y
print(m, r)