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:
s = input()
input_str = s.split(" ")
x = int(input_str[0])
y = int(input_str[1])
# ??¢?????¨??¨???
print("{0} {1}".format(x * y, 2 * (x + y)))

Submission status: Accepted

Solution code:
import sys

a,b = map(int,sys.stdin.readline().split())
area = a*b
surround = 2*(a+b)
print("%d %d" % (area, surround))

Submission status: Accepted

Solution code:
import sys

line = sys.stdin.readline()
inp = []
for i in line.split(" "):
    inp.append(int(i))
print (inp[0]*inp[1], (inp[0]+inp[1])*2)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

area = x * y
circumference = 2 * x + 2 * y
print(area, circumference)

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

print ans1 , ans2

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

print l[0]*l[1] ,
print 2*l[0]+2*l[1]

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

b = a[0]*a[1]
c = a[0]*2+a[1]*2
print b , c

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

Submission status: Accepted

Solution code:
#reference : http://qiita.com/clarinet758/items/53e31ec10b873975438b
#reference : #1511943 Solution for ITP1_1_C: Rectangle by Signorte
# print "%d %d" % (s ,l) => ERROR

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

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

print "%s %s" % (str(s) ,str(l))

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

print num[0] * num[1], 2*num[0] + 2*num[1]

Submission status: Accepted

Solution code:

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

Submission status: Accepted

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

Submission status: Accepted

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

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

print s , r

Submission status: Accepted

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

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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

print k[0]*k[1],k[0]*2+k[1]*2

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
param=input().split()
menseki=int(param[0])*int(param[1])
nagasa=int(param[0])*2+int(param[1])*2
print(menseki,nagasa)

Submission status: Accepted

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

print str(S) + ' ' +  str(O)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

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 = raw_input().split(" ")
x = int(a)*2+int(b)*2
y = int(a)*int(b)
print "%d %d"%(y,x)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

print "%d %d" % (s, l)

Submission status: Accepted

Solution code:
input_nums = map(int,raw_input().split())
men = input_nums[0] * input_nums[1]
syu = (input_nums[0] * 2) + (input_nums[1] * 2)
print "{0} {1}".format(men,syu)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
#coding:utf-8

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
#a,b = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
class Rectangle:
    def __init__(self, a, b):
        S = a * b
        L = a + a + b + b
        print(str(S) + ' ' + str(L))

if __name__ == "__main__":

    a, b = map(int, raw_input().split())
    rc = Rectangle(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:
n=map(int, raw_input().split())
print n[0]*n[1], n[0]*2+n[1]*2

Submission status: Accepted

Solution code:
import sys
input_line = sys.stdin.readline()
input_arr = input_line.split()
x = int(input_arr[0])
y = int(input_arr[1])
print str(x*y) + " " + str(2*x+2*y)

Submission status: Accepted

Solution code:
import sys
input_arr = map(int,sys.stdin.readline().split())
print input_arr[0]*input_arr[1], 2*(input_arr[0]+input_arr[1])

Submission status: Accepted

Solution code:
# -*- coding:UTF-8 -*-
num = input().split()
print(int(num[0]) * int(num[1]), int(num[0])*2 + int(num[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()))
c = 2 * (a+ b)
d = a * b
print(str(d) + " " + str(c))

Submission status: Accepted

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

Submission status: Accepted

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

print m,gh

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
i = raw_input().strip().split()

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def area(higt, wide):
    a = higt
    b = wide
    return a * b

def circ(higt, wide):
    a = higt
    b = wide
    return 2 * int(a) + 2 * int(b)


imput = raw_input().split()
menseki = area(int(imput[0]), int(imput[1]))
ensyu = circ(imput[0], imput[1])

print(str(menseki) + " " + str(ensyu))

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:
# -*- coding:utf-8 -*-
a,b = map(int, input().split())
c = a*b
d = 2*(a+b)

print(c, d)

Submission status: Accepted

Solution code:
import sys

a, b = map(int, sys.stdin.readline().split())
print("%d %d" % (a * b, 2*a + 2*b))

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import re
num = list(map(int, re.split('\s+', input())))
print(num[0] * num[1], end=" ")
print((num[0] + num[1]) * 2)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def rectangle(a, b):
    S = a * b
    L = a*2 + b*2
    print(S, L)

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

rectangle(a, b)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# 02-Getting_Started-Rectangle.py

# ????????¢?????¢?????¨??¨?????????
# ?????? a cm ?????? b cm ???????????¢?????¢?????¨??¨?????????????±???????????????°?????????????????????????????????

# Input
# a ??¨ b ????????????????????§????????????????????????????????????
# Output
# ??¢?????¨??¨?????????????????????????????§????????£????????????????????????????????????

# Sample Input
# 3 5
# Sample Output
# 15 16

# print("a??¨b?????\??????")
a,b=map(int,input().split())
# print("a=%d, b=%d."%(a,b))

# print("??¢??????%f ."%(a*b));
# print("??¨????????????%f ."%(2*a+2*b));
print("%d %d"%(a*b, 2*a+2*b));

Submission status: Accepted

Solution code:
# 02-Getting_Started-Rectangle.py

# ????????¢?????¢?????¨??¨?????????
# ?????? a cm ?????? b cm ???????????¢?????¢?????¨??¨?????????????±???????????????°?????????????????????????????????

# Input
# a ??¨ b ????????????????????§????????????????????????????????????
# Output
# ??¢?????¨??¨?????????????????????????????§????????£????????????????????????????????????

# Sample Input
# 3 5
# Sample Output
# 15 16

# print("a??¨b?????\??????")
a,b=map(int,input().split())
# print("a=%d, b=%d."%(a,b))

# print("??¢??????%f ."%(a*b));
# print("??¨????????????%f ."%(2*a+2*b));
print("{0} {1}".format(a*b, 2*a+2*b));

Submission status: Accepted

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

Submission status: Accepted

Solution code:
InputNum = input().split()
tate = int(InputNum[0])
yoko = int(InputNum[1])
square = tate * yoko
length = 2* (tate + yoko)
print(square,length)

Submission status: Accepted

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

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

print a,b

Submission status: Accepted

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

x = int(x)
y = int(y)

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

Submission status: Accepted

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

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

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:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
def main():
  numbers = input().split(' ')
  height = int(numbers[0]) 
  width = int(numbers[1])
  print(height * width ,height * 2 + width * 2)
  return

if __name__ == '__main__':
  main()

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = raw_input()

a = n.split(" ")

b = int(a[0])

c = int(a[1])

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
l,b = map(int,raw_input().split())
print l*b , 2*(l+b)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
a, b = map(int, input().split(' '))

menseki = a * b

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

Submission status: Accepted

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

Submission status: Accepted

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

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:
h,w = map(int, raw_input().split())
print h*w,h*2+w*2

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

nums=list(map(int,input().split()))

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# coding: utf-8

a, b = list(map(int, input().strip().split()))
print(' '.join(map(str, [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:
import string
L = string.split(raw_input())
a = int(L[0])
b = int(L[1])
print a * b, 2*(a+b)

Submission status: Accepted

Solution code:
line = raw_input()
lis = line.split()
a = int(lis[0])
b = int(lis[1])
s = a * b
len = 2 * (a + b)
print str(s) + " " + str(len)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#coding:utf-8
a,b=map(int,raw_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 = input().split()
a = a_b[0]
b = a_b[1]
area = int(a) * int(b)
length = 2*int(a) + 2*int(b)
print(area,length)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: UTF-8
# ?????? a cm ?????? b cm ???????????¢?????¢?????¨??¨?????????????±???????????????°?????????????????????????????????

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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:
import sys

data = sys.stdin.readline().strip().split(' ')
a = int(data[0])
b = int(data[1])
print('%d %d' % (a * b, (a + b) * 2))

Submission status: Accepted

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


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

print(c, d)

Submission status: Accepted

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

print S,
print L

Submission status: Accepted

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

a=intl[0]
b=intl[1]

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

Submission status: Accepted

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

#print(x,y)
print(a,b)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
a,b = input().split()
a = int(a);b=int(b)
print('{} {}'.format(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:
n=input().rstrip().split(" ")
w=int(n[0])
l=int(n[1])
print(w*l, 2*w+2*l)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#coding: UTF-8

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

if __name__=="__main__":
    a = input().split(" ")
    area,length = Rectangle(int(a[0]),int(a[1]))
    print(area,length)

Submission status: Accepted

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

print(a,b)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
__author__= 'CIPHER'

str = input()
numList = str.split(' ')
numList = [ int(x) for x in numList]
#print(numList)
result = 1
length = 0
for x in numList:
    result *= x
    length += x

print(result,2*length)

Submission status: Accepted

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

def main():
  Num = input().split()
  area = int(Num[0]) * int(Num[1])
  sur = 2 * (int(Num[0])+int(Num[1]))

  print(area, sur)
 
if __name__ == '__main__':
  main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

m = int(x)*int(y)
l = int(x)*2+int(y)*2
print('{} {}'.format(m,l))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Here your code !
a,b = input().split()
m = int(a) * 2 + int(b) * 2
s = int(a) * int(b)
print(s,m)

Submission status: Accepted

Solution code:


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

space = a*b
long = 2*(a+b)

print(space,long)

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
w, h = [int(x) for x in raw_input().split(" ")]
print "{0} {1}".format(w * h, w * 2 + h * 2)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

a = int(x) * int(y)
b = int(x)*2 + int(y)*2
print("{} {}".format(a, b))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
num = input()
data = []
data = num.split()
sqr=int(data[0])*int(data[1])
rou = int(data[0])*2+int(data[1])*2
print(str(sqr)+' '+str(rou))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
if __name__ == "__main__":
	num1, num2 = map( int, input().split() )
	print(num1*num2,(num1+num2)*2)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
(lambda l:print("{0} {1}".format(l[0]*l[1],2*(l[0]+l[1]))))([int(e)for e in input().split()])

Submission status: Accepted

Solution code:
import sys
 
lines = [x.strip().split() for x in sys.stdin.readlines()][0]
[a, b] = [int(x) for x in lines]
 
print a*b, 2*(a+b)

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

Submission status: Accepted

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

Submission status: Accepted

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