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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def Area(x,y):
    return x*y


def Perimeter(x,y):
    return 2*x+2*y


text = input()

a, b= text.split(" ")

ANS_1 = Area(int(a),int(b))
ANS_2 = Perimeter(int(a),int(b))

ANSWER = str(ANS_1) + " " + str(ANS_2)

print(ANSWER)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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


def main(l_):
    a, b = l_[0], l_[1]
    area = a * b
    perimeter = (a + b) * 2
    print('{} {}'.format(area, perimeter))
    
    
if '__main__' == __name__:
    try:
        while True:
            main(list(map(int,input().strip().split(' '))))
    except EOFError:
        pass

Submission status: Accepted

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

x = int(list[0])
y = int(list[1])

a1 = x * y
a2 = x * 2 + y * 2

print(str(a1) + " " + str(a2))

Submission status: Accepted

Solution code:
#coding: UTF-8

x = input()

y = list(map(int,x.split()))

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

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

print(c,d)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

for line in sys.stdin:
    nums = list(map(lambda x: int(x), line.split()))
    menseki = nums[0] * nums[1]
    syuu = nums[0] * 2 + nums[1] * 2
    print(str(menseki) + " " + str(syuu))

Submission status: Accepted

Solution code:
import sys
import functools

for line in sys.stdin:
    nums = list(map(lambda x: int(x), line.split()))
    menseki = functools.reduce(lambda x, y: x * y, nums)
    syuu = functools.reduce(lambda x, y: x + y, nums) * 2
    print(str(menseki) + " " + str(syuu))

Submission status: Accepted

Solution code:
import sys
from functools import reduce

for line in sys.stdin:
    nums = list(map(lambda x: int(x), line.split()))
    menseki = reduce(lambda x, y: x * y, nums)
    syuu = reduce(lambda x, y: x + y, nums) * 2
    print(str(menseki) + " " + str(syuu))

Submission status: Accepted

Solution code:
import sys
import operator

for line in sys.stdin:
    nums = list(map(int, line.split()))
    strings = map(str, [operator.mul(*nums),
                        operator.add(*nums) * 2])
    print(" ".join(strings))

Submission status: Accepted

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

#n = [int(i) for i in n]
print(str(n[0] * n[1]) + " " + str((n[0] + n[1]) * 2))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

print str(area)+" "+str(perimeter)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
height,width = map(int, input().split())
area = height * width
circumference = height * 2 + width * 2
print(area, circumference, sep = ' ')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
temp_input = raw_input()
temp_list = temp_input.split()
x = int(temp_list[0])
y = int(temp_list[1])
print(str(x*y) + " " + str(2*x+2*y))

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

line = input().split()

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

if 1<=a and a<=100 and 1<=b and b<=100:
  area=a*b
  cir=(a+b)*2
  print(area,cir)
else:
  print("error")

Submission status: Accepted

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

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

print(s,l)

Submission status: Accepted

Solution code:

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

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:
ab = [int(n) for n in input().split()]
 
S = ab[0]*ab[1]
L = 2*ab[0] + 2*ab[1]
 
print(" ".join(map(str,[S,L])))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

s=a*b
sum=a*2+b*2

print(s,sum)

Submission status: Accepted

Solution code:

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

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

Submission status: Accepted

Solution code:
#16D8101012J 伊藤惇 dj Python3 

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

def perimeter_of_the_rectangle(a,b):
    c=(a+b)*2
    return c

def Rectangle():
    a,b=map(int,input().split())
    c=area(a,b)
    d=perimeter_of_the_rectangle(a,b)
    print("{} {}".format(c,d))

if __name__ == '__main__':
    Rectangle()

Submission status: Accepted

Solution code:
def area(a,b):
    c=a*b
    return c
def perimeter_of_the_rectangle(a,b):
    c=(a+b)*2
    return c
def Rectangle():
    a,b=map(int,input().split())
    c=area(a,b)
    d=perimeter_of_the_rectangle(a,b)
    print("{} {}".format(c,d))
    
if __name__ == '__main__':
    Rectangle()

Submission status: Accepted

Solution code:
data = input().split(' ')
data2 = [int(x) for x in data]
area = data2[0] * data2[1]

perimeter = (data2[0]+data2[1])*2
ans = str(area) + ' '  + str(perimeter)
print(ans)

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a=input() 
line=a.split()
x=int(line[0])
y=int(line[1])
z1=x*y
z2=x*2+y*2
z3=str(z1)
z4=str(z2)
print(z3,z4)

Submission status: Accepted

Solution code:
#16D8101023J 久保田凌弥 kubotarouxxx python3

x,y=map(int, input().split())
w=x*y
z=2*x+2*y

print(w,z)

Submission status: Accepted

Solution code:
#16D8101023J 久保田凌弥 kubotarouxxx python3

x,y=map(int, input().split())
w=x*y
z=2*x+2*y

print(w,z)

#

Submission status: Accepted

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


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

Submission status: Accepted

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


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

Submission status: Accepted

Solution code:
#coding: UTF-8

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

s = a*b

p = 2*a+2*b

print(s,p)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#! python3
# rectangle.py

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

Submission status: Accepted

Solution code:
a, b =list(map(int,input().split()))
print("{} {}".format(str(a*b),str(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:
num = input("")
sets = num.split(" ")
length = int(sets[0])
breadth = int(sets[1])
area = length * breadth
perimeter = (length + breadth) * 2
print(str(area) + " " + str(perimeter))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

def main():
    a, b = map(int, input().split())  #標準入力を行う
    area = a*b
    length = a*2 + b*2
    print('{0} {1}'.format(area, length))

main()

Submission status: Accepted

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

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:
def numinput():
    a = input().split()
    for i in range(len(a)):
        a[i] = int(a[i])
    return a

def main():
    a = numinput()
    print('%d %d' % (a[0] * a[1], 2 * (a[0] + a[1])))

if __name__ == "__main__":
    main()

Submission status: Accepted

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

print(area + " " + line)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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

print('%s %d' % (a[0]*a[1], 2*a[0]+2*a[1]))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
arr = list(map(int, input().split()))
w = arr[0]
h = arr[1]
area = w * h
perimeter = 2 * (w + h)
print(str(area) + ' ' + str(perimeter))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

print(f'{area} {length}')

Submission status: Accepted

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

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

print(str(men) + ' ' + str(syu))

Submission status: Accepted

Solution code:
import sys

if __name__ == '__main__':
    import doctest
    doctest.testmod()
    a, b = map(int, sys.stdin.read().split())
    print a * b, 2 * (a + b)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

men = a*b
hen = 2*(a+b)

print(men,hen,sep=" ")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

Solution code:
# Rectangle

length = [int(i) for i in input().rstrip().split()]

height = length[0]
breadth = length[1]

# 面積
rectangleArea = height * breadth
# 周の長さ
rectanglePerimeter = (height + breadth) * 2

print(rectangleArea, rectanglePerimeter)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
number = input()

number_list = number.split(' ')

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

if 1 <= a <= 100 and 1 <= b <= 100:
    menseki = a * b
    nagasa = 2 * (a + b)

    print(str(menseki) + " " + str(nagasa))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

print(s, r)

Submission status: Accepted

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

Submission status: Accepted

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

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:
stdin = input()
hw = stdin.split(" ")
h = (int)(hw[0])
w = (int)(hw[1])
area = h * w
perimeter = h * 2 + w * 2

print(area, perimeter)

Submission status: Accepted

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

Submission status: Accepted

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

def main():
	a, b = [int(x) for x in raw_input().split(" ")]
	print a * b, (a + b) * 2

if __name__ == '__main__':
	main()

Submission status: Accepted

Solution code:
import sys
for x in sys.stdin:
    a=[int(i) for i in x.split(' ')]
    print '%d %d' %(a[0]*a[1], 2*(a[0]+a[1]))

Submission status: Accepted

Solution code:
import sys
for x in sys.stdin:
    a,b=x.split(' ')
    a,b=int(a),int(b)
    print '%d %d' %(a*b, 2*(a+b))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from __future__ import division, print_function
from sys import stdin
a, b = (int(s) for s in stdin.readline().split())
print(a*b, a+a+b+b)

Submission status: Accepted

Solution code:
import sys
for line in sys.stdin:
    cols = map(int, line.rstrip('\n').split(' '))
    a, b = cols[0], cols[1]
    print '%d %d' % (a*b, 2*(a+b))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

for line in sys.stdin:
    A=line.split()
    B=map(int,A)
    S=B[0]*B[1]
    l=(B[0]+B[1])*2
    print S,l

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:
n = [int(i) for i in raw_input().split()]
print n[0]*n[1], 2*(n[0]+n[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 = i.split()

totalLength = 0
for length in a:
    totalLength += int(length) * 2

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

print str(menseki)+" "+str(totalLength)

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 ' '.join(map(str,[a*b, (a+b)*2]))

Submission status: Accepted

Solution code:
#!/usr/bin/env python

# coding: utf-8


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

Submission status: Accepted

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

n = raw_input().split()

square = int(n[0]) * int(n[1])
circum = 2 * (int(n[0]) + int(n[1]))

sys.stdout.write(str(square))
sys.stdout.write(" ")
sys.stdout.write(str(circum))
sys.stdout.write("\n")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
sids = input()
side_list = []

side_list = [int(s) for s in sids.split(' ', )]

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

a, b = [int(i) for i in sys.stdin.readline().split(' ')]

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

a = x * y
s = 2*x + 2*y

print(a,s)

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())
men = a*b
length = 2*a + 2*b
print(str(men)+" "+str(length))

Submission status: Accepted

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

print(height*width, end = " ")
print(2*(height+width))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
vertical,horizontal=(int(x) for x in input().split())
print(vertical*horizontal,2*(vertical+horizontal))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

print(S, L)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

print(area , rectangle)

Submission status: Accepted

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

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

print(s, l)

Submission status: Accepted

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


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

print(c, d)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

#面積
m= a * b
#周
n= 2*a + 2*b

print(str(m)+" "+str(n))

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

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

print(y,x)

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

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

Submission status: Accepted

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

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:
def mapt(fn, *args):
    return tuple(map(fn, *args))
    
n = mapt(int, input().split(" "))
def aa(n):
    a, b = n
    print(a*b, (a+b)*2)
aa(n)

Submission status: Accepted

Solution code:
A, B = map(int, input().split())

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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