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

Submission status: Accepted

Solution code:
"""
Rectangle
"""
def main():
    #a, b = map(int, input().split())
    a,b = (int(i) for i in input().split())
    print(a*b,(a+b)*2)
        
if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b = map(int,input().split()) #a,bの入力受け取り

print(a*b, 2*a+2*b) #面積(a*b)と周長(2*a+2*b)の出力

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

s = a * b
c = a*2 + b*2
print(str(s) + " " + str(c))

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
x = []
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())
area=a*b
perimeter=2*(a+b)
print("%d %d" % (area,perimeter))

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = input()
list = [int(s) for s in x.split() if s.isdigit()]
[a, b] = list
c = a * b
c = str(c)
d = " "
e = 2 * a + 2 * b
e = str(e)
ans = c + d + e
print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
iipt=lambda:int(input())
miipt=lambda:list(map(int, input().split()))

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

print('%s %s' % ((int(a) * int(b)), (int(a) + int(b)) * 2))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

print(f'{a * b} {(a + b) * 2}')

Submission status: Accepted

Solution code:
# input で空白をいれて複数数値を入れると、複数とれる
i = input()

# listを使って[x,y]が作れる
# i.split で、複数に分けれる
# map を使うとlist の中身をとれる
a,b = list(map(int, i.split()))
#a,b = map(int, i.split())


# 面積 a * b
print(a*b,2*(a+b))

Submission status: Accepted

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


print(menseki,shu)

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x , y = (int(i) for i in raw_input().split())

print x*y , 2*x + 2*y

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
sizes = [int(i) for i in input().split()]
height = sizes[0]
width = sizes[1]
 
square = height * width
length = (height +  width) * 2
 
print(square, length)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
tate,yoko = map(int,input().split())


menseki = tate * yoko
syuu = 2*tate + yoko*2


print(menseki, syuu)

Submission status: Accepted

Solution code:
#!python3.7
#-*- coding: utf-8 -*-

def main():
    #a,b = map(int,input().split())
    a,b = (int(x) for x in input().split())
    area = a * b
    perimeter = 2*a + 2*b
    print(area,perimeter)


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# /usr/bin/python
# -*- coding: utf-8 -*-
import sys


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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
arg = input().split()
 
arg = [int(v) for v in arg]

s = arg[0]*arg[1]
r = (arg[0] + arg[1])*2

print(str(s) + ' ' + str(r))

Submission status: Accepted

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

Submission status: Accepted

Solution code:

data = input().split()

S = int(data[0]) * int(data[1])
L = int(data[0])*2 + int(data[1])*2

print(S,L)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

# http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_1_C

if __name__ == '__main__':
    a, b = map(int, raw_input().split())
    print a * b, 2 * (a + b)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
print(f"{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 = input().split(" ")
b = int(a[0])
c= int(a[1])

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
input_line = input()

input_list = input_line.split()
a = int(input_list[0])
b = int(input_list[1])

ans1 = a*b
ans2 = a*2 + b*2

print(str(ans1) + " " + str(ans2))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
line = input().rstrip().split()
a = int(line[0])
b = int(line[1])
print(str(a*b) + " " + str(2*a+2*b))

Submission status: Accepted

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

print(area, peri)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
##たて a cm よこ b cm の長方形の面積と周の長さを求めるプログラムを作成して下さい。
#Input
#a と b が１つの空白で区切られて与えられます。
a,b = map(int, input().split())
s = a * b
l = 2 * (a + b)
print('{} {}'.format(s, l))

Submission status: Accepted

Solution code:
a, b = input().split()
a = int(a)
b = int(b)
print('%d %d'%(a*b, a+a+b+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=int(x[0])
b=int(x[1])
if 1<=a and b<=100:
    print(a*b,a*2+b*2)

Submission status: Accepted

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

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


area = a * b
circum = (a + b) * 2
print(str(area) + " " + str(circum))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
c, d = map(int, input().split())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
A,B = (int(x) for x in input().split())

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

Submission status: Accepted

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

a = int(s[0])*int(s[1])

b =  int(s[0])*2 + int(s[1])*2

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x, y = [int(n) for n in input().split()]
area = x * y
cir  = (x + y) * 2
print("%d %d" % (area, cir))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
class Rectangle(object):
    def __init__(self, length:int, breadth:int) -> None:
        if length < 1:
            raise ValueError('Paramter length is lower than 1.')
        if length > 100:
            raise ValueError('Paramter length is larger than 100.')
        if breadth < 1:
            raise ValueError('Paramter breadth is lower than 1.')
        if breadth > 100:
            raise ValueError('Paramter breadth is larger than 100.')

        self.length = length
        self.breadth = breadth

    def get_area(self) -> int:
        return self.length * self.breadth

    area = property(get_area)

    def get_perimeter(self) -> int:
        return 2 * (self.length + self.breadth)

    perimeter = property(get_perimeter)

if __name__ == "__main__":
    in_str = input()
    param = in_str.split()
    length = int(param[0])
    breadth = int(param[1])

    rect = Rectangle(length, breadth)
    print('{0} {1}'.format(rect.area, rect.perimeter))

Submission status: Accepted

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

print(s, end=" ")
print(l)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

input_list = input().split(' ')
x = int(input_list[0])
y = int(input_list[1])

print('{} {}'.format(str(x * y), str((x + y) * 2)))

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
nums = [int(s) for s in input().split()]
area = nums[0] * nums[1]
peri = 2 * (nums[0] + nums[1])
print('{} {}'.format(area, peri))

Submission status: Accepted

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

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(x) for x in input().split())
print(a*b, 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:
import sys

a, b = (int(n) for n in sys.stdin.read().strip().split())
print(f'{a * b} {2 * (a + b)}')

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
a, b = map(int, 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] + a[1])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
list = list(map(int, input().split()))
a = list[0] * list[1]
b = (list[0] + list[1]) * 2
print(str(a) + " " + str(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, 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:
x = input()
y = x.split(" ")
tate = y[0]
yoko = y[1]
print(int(tate) * int(yoko), int(tate) * 2 + int(yoko) * 2, sep=' ')

Submission status: Accepted

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

Submission status: Accepted

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

s=a*b
l=2*a+2*b
print(str(s)+" "+str(l))

Submission status: Accepted

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

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

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

print(area, perimeter)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
data = input().split()
x = int(data[0])
y = int(data[1])

area = x*y
rect = (x+y)*2

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import fileinput

# http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_1_C
__author__ = 'Kyoro'


def main():
    for a, b in read_next():
        print(area(a, b), perimeter(a, b))


def read_next():
    for line in fileinput.input():
        tokens = line.strip().split()
        yield list(map(int, tokens))


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


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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

try:
     (a,b)  =  map(int,input().split())
except:
    exit

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

Submission status: Accepted

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

print(s, r)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s=input()

ss=list(map(lambda x: int(x), s.split(" ")))

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

Submission status: Accepted

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

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

Submission status: Accepted

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

L, S = 0, 0
S = a * b
L = a * 2 + b * 2
print(S, L)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding:utf-8

n = list(input().split())
a = int(n[0])
b = int(n[1])
print(a*b, 2*a+2*b)

Submission status: Accepted

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

Submission status: Accepted

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

if 1 <= a <= 100:
    if 1<= b <= 100:

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x=input()
y=list(map(int,x.split()))
print("{} {}".format(y[1]*y[0],y[0]*2 +y[1]*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 = input().split()
A = int(A)
B = int(B)
if B<= 100 and A >= 1:
  print(A*B, (A+B)*2)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
hensu = input()
ab = hensu.split(" ")
a = int(ab[0])
b = int(ab[1])
print(str(a*b) + " " + str(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:
s,t = map(int,input().split())
a = str(2*s + 2*t)
b = str(s  * t)
print(b+" "+a)

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import os
import sys

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

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

print(str(z) + " " + str(x))

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

area = a * b
rec = a * 2 + b *2

print(area, rec)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
m=sys.stdin.readline()
l=list(map(int,m.split()))
area=l[0]*l[1]
perimeter=l[0]+l[0]+l[1]+l[1]
print(area,perimeter,sep=" ")

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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