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:
#2020-03-15
height,width = map(int,input().split())
print(height * width, height*2 + width*2)

Submission status: Accepted

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

area = h * s

length = (h + s) * 2

print(area, length)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

s=i[0]*i[1]


l=i[0]*2+i[1]*2

print(s,l)

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

print(area, mawari)

Submission status: Accepted

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

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


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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

print(area,Perimeter)

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:
line = input()

strings = line.split()

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

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

print('{area} {perimeter}'.format(area=area, perimeter=perimeter))

Submission status: Accepted

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

Submission status: Accepted

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

if __name__ == '__main__':
  main()

Submission status: Accepted

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

Submission status: Accepted

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

print(c, d)

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 = input().split()
a = int(a)
b = int(b)

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

Solution code:
import sys
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
length = 2 * (a + b)

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

Submission status: Accepted

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

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()))
print(i[0]*i[1], i[0]*2 + i[1]*2)

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x, y = map(lambda x: int(x), input().split(" "))
print("{} {}".format(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:
def calc_area(a, b):
    return a*b


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


if __name__ == "__main__":
    a, b = map(int, input().split())
    print('{} {}'.format(calc_area(a, b), calc_surrounding_length(a, b)))

Submission status: Accepted

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

Submission status: Accepted

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

S = int(ab[0])*int(ab[1])
D = 2*(int(ab[0])+int(ab[1]))

print(S, D)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b=(int(x) for x in 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:

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

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

Submission status: Accepted

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

Submission status: Accepted

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

ans1 = a*b

ans2 = a*2 + b*2

print("%d %d"%(ans1,ans2))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

str_a, str_b =input().split()
a=int(str_a)
b=int(str_b)
if not (a >=1 and a<=100):
    sys.exit()
b=int(str_b)
if not (b >=1 and b<=100):
    sys.exit()
print(str(a*b) + " " + str(a*2+b*2))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = input()
y = x.split()
a,b = int(y[0]),int(y[1])
m = a*b
l = (a+b)*2
print(m,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:
height, width = [int(x) for x in input().split()]
area = height * width
perimeter = height * 2 + width * 2

print(area, perimeter)

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
def S(l, w):
    s = l * w
    return s

def C(l, w):
    c = 2 * (l + w)
    return c

def main():
    lw = input()
    split_lw = lw.split()
    l = int(split_lw[0])
    w = int(split_lw[1])
    s = S(l, w)
    c = C(l, w)

    print(s,c)

if __name__ == '__main__':
    main()

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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


tmp = input().split()
a,b = list(map(lambda a: int(a), tmp))

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

Submission status: Accepted

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

print('{} {}'.format(a*b, 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 = map(int,input().split())

area = a * b
prm = 2*a + 2*b

print(area, prm)

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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(str(x*y)+" "+str(x*2+y*2))

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
class Rectangle:
    def __init__(self, len, breadth):
        self.len = a
        self.breadth = b

    def area(self):
        return self.breadth * self.len
    
    def perimeter(self):
        return (self.breadth + self.len) * 2

x = input()
a = int(x.split()[0])
b = int(x.split()[1])
rectangle = Rectangle(a, b)
print(str(rectangle.area() )+ " " +str(rectangle.perimeter()))

Submission status: Accepted

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

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

Submission status: Accepted

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

def menseki(a,b):
    c = a*b
    return c
def syuu(a,b):
    d = a*2 + b * 2
    return d
print(str(menseki(a,b))+" "+str(syuu(a,b)))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
val = input()
a2, b2 = val.split(' ')
a=int(a2)
b=int(b2)

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!

a, b = raw_input().split()
#a=raw_input()
#print(a)
#print(b)
x,y=int(a)*int(b),int(a)*2+int(b)*2
print(str(x)+' '+str(y))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
number = input("")
number_split = number.split()

number_area = int(number_split[0]) * int(number_split[1])
number_length = int(number_split[0]) * 2 + int(number_split[1]) * 2

print(f"{number_area} {number_length}")

Submission status: Accepted

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

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

print('{} {}'.format(x,y))

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import sys
import itertools

# import numpy as np

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

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

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

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("{0} {1}".format(a*b, a+a+b+b))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

print(f"{square} {length}")

Submission status: Accepted

Solution code:
x, y = list(map(int, input().split()))
area = x * y
circumference = x*2 + y*2
print(' '.join(map(str, [area, circumference])))

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 = map(int,input().split())
print(" ".join(map(str, [a*b, 2*(a+b)])))

Submission status: Accepted

Solution code:
#!python3

iim = lambda: map(int, input().rstrip().split())

def resolve():
    a, b = iim()
    print(a*b, 2 * (a + b))

if __name__ == "__main__":
    resolve()

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:
line = input()
a, b = map(int, line.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
perimitar = 2 * (a + b)

print("{} {}".format(area, perimitar))

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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:
text = input()
num1,num2 = text.split()
area = int(num1)*int(num2)
peri = 2*(int(num1)+int(num2))
print(area, peri)

Submission status: Accepted

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

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

Submission status: Accepted

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

t=int(t)
y=int(y)

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
inp = input()

a, b = inp.split(' ')

inta = int(a)
intb = int(b)

area = inta * intb
circumference = inta * 2 + intb * 2

ac = [str(area), str(circumference)]

answer = ' '.join(ac)

print(answer)

Submission status: Accepted

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

a = ab_lst[0]
b = ab_lst[1]

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

width, height = input().split(' ')

s = int(width) * int(height)
l = int(width) * 2 + int(height) * 2

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

def m():
    return a*b

def s():
    return 2*(a+b)

print(m(),s())

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

print("%d %d"%(x*y,x*2+y*2))

Submission status: Accepted

Solution code:
import sys

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

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

Submission status: Accepted

Solution code:
# ITP1_1_C
# Rectangle
# http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_1_C
# encode : utf-8
a, b = map(int, input().split())
print("{} {}".format(a*b, (a+b)*2))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def rectangle(length, breadth):
    return str(length*breadth) + " " + str(2*length + 2*breadth)

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
a,b=(int(x) for x in input().split())
print(a*b,(a+b)*2)

Submission status: Accepted

Solution code:
length = list(map(int, input().rstrip().split(" ")))
perimeter = sum(length) * 2
area = length[0] * length[1]
print(area, perimeter)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
print(f'{a*b} {2*a+2*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:
l = input().split()
a = int(l[0])
b = int(l[1])
c = a * b
d = (a + a) + (b + b)
print(str(c) + ' ' + str(d))

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from collections import deque
import sys

sys.setrecursionlimit(10 ** 6)
int1 = lambda x: int(x) - 1
p2D = lambda x: print(*x, sep="\n")

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

main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

menseki = l[0] * l[1]
shu = 2*(l[0]+l[1])
print(menseki, shu)

Submission status: Accepted

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

if 1 <= a and a <= 100:
    if 1 <= b and b <= 100:
        print(a*b, a*2+b*2)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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