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: Runtime Error

Solution code:
x=int(input(x, y))
print(x * y)

Submission status: Runtime Error

Solution code:
a=int(input())
b=int(input())
print(f"{a*b} {(a+b)*2}")

Submission status: Runtime Error

Solution code:
a=int(input())
b=int(input())
print(f"{a*b}{(a+b)*2}")

Submission status: Runtime Error

Solution code:
a=int(input())
b=int(input())
print(f"{a*b},{(a+b)*2}")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

print(l[0]*l[1])

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

x = map(int, raw_input(),split())
a = x[0]
b = x[1]

R = a*b
P = 2*a+2*b
A = str(R)+" "+str(P)

print(A)

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())

print("%d %d", % a*b, 2*a + 2*b)

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())

print("%d %d", % (a*b, 2*a + 2*b))

Submission status: Runtime Error

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

print("%d %d", % (a*b, 2*a + 2*b))

Submission status: Runtime Error

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

print("%d %d", %(a*b, 2*a + 2*b))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
x=int(input())
y=int(input())
print (x*y)

Submission status: Runtime Error

Solution code:

a = input()
b = input()
print(a * b+ +(a + b) * 2)

Submission status: Runtime Error

Solution code:

a = input()
b = input()
print(int(a) * int(b)+ +(int(a) + int(b)) * 2)

Submission status: Runtime Error

Solution code:

a = input()
b = input()
print(int(a) * int(b) (int(a) + int(b)) * 2)

Submission status: Runtime Error

Solution code:
a = input()
b = input()
print(int(a) * int(b))
print((int(a) * int(b)) * 2)

Submission status: Runtime Error

Solution code:

a = input()
b = input()
print(int(a) * int(b))
print((int(a) + int(b)) * 2)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

print(men+" "+hen)

Submission status: Runtime Error

Solution code:
a=int(input())
b=int(input())

area=a*b
longht=a*2+b*2

print(area)
print(longht)

Submission status: Runtime Error

Solution code:
a=int(input())
b=int(input())

area=a*b
print(area)

longht=2*a+2*b
print(longht)

Submission status: Runtime Error

Solution code:
a=int(input())
b=int(input())

area=a*b
print(area)

longht=2*a+2*b
print(longht)

print(str(area)+" "+str(longht))

Submission status: Runtime Error

Solution code:
a=int(input())
b=int(input())

area=a*b

longht=2*a+2*b

print(str(area)+" "+str(longht))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
area_input = input()
vertical = 0
side = 0
area_list = area_input.split(',')

if 1 <= vertical && side <= 100:
  for i in area_list:
    vertical = area_list[0]
    side = area_list[1]
  
  area = int(vertical) * int(side)
  langth = 2 * (int(vertical) + int(vertical))
  
  print(str(area) + " " + str(langth))

Submission status: Runtime Error

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: Runtime Error

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: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a = int(iput())
print(' ')
b = int(input())

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
print(float(input()) * float(input())

Submission status: Runtime Error

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

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

print(d +" " +c)

Submission status: Runtime Error

Solution code:
a = input(), b = input()
c = int(a)
d = int(b)

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

Submission status: Runtime Error

Solution code:
a = input()
b = input()
c = int(a)
d = int(b)

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

Submission status: Runtime Error

Solution code:
a = input()
b = input()
c = int(a)
d = int(b)

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

Submission status: Runtime Error

Solution code:
a = input()
b = input()
c = int(a)
d = int(b)

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
h=input()
w=input()

a=h*w
b=h*2+w*2

print(a)
print(b)

Submission status: Runtime Error

Solution code:
h=input()
w=input()

a=h*w
b=h+h+w+w

print(a)
print(b)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

def main():
	a = int(raw_input())
	b = int(raw_input())

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

if __name__ == '__main__':
	main()

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a = eval(input())
b = eval(input())
print (a*b,a*2+b*2)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a=input();
b=input();
d=a*b;
l=2*(a+b) ;
print d l ;

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())
l = a*b
print(l)
k = (a + b) * 2
print(k)

Submission status: Runtime Error

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

Submission status: WA: Presentation Error

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

print(h*w, ' ', h*2+w*2)

Submission status: WA: Presentation Error

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

print(h*w, ' ', h*2+w*2)

Submission status: WA: Presentation Error

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

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

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

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

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

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

Solution code:
import sys

line = sys.stdin.readline()

tate, yoko = line.split(" ")

tate = int(tate)
yoko = int(yoko)

S = tate * yoko
T = 2 * (tate + yoko)

print S, " ", T

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

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

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

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

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

Solution code:
str=input()
a=int(str[0])
b=int(str[2])
print(a*b, end='')
print((a+b)*2)

Submission status: WA: Presentation Error

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

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

Submission status: WA: Presentation Error

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

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

Submission status: WA: Presentation Error

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

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

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

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

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

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

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

S = l[0] * l[1]
N = l[0]*2 + l[1]*2

print(str(S) + str(N))

Submission status: WA: Presentation Error

Solution code:
shikaku = input()
shikaku_list = shikaku.split(' ')
shikaku_a_str = shikaku_list[0]
shikaku_b_str = shikaku_list[1]
shikaku_a_int = int(shikaku_a_str)
shikaku_b_int = int(shikaku_b_str)
menseki = shikaku_a_int * shikaku_b_int
syui = (shikaku_a_int + shikaku_b_int) * 2
print(menseki, ' ', syui)

Submission status: WA: Presentation Error

Solution code:
sikaku = input()
sikaku_list = sikaku.split(' ')
sikaku_a_str = sikaku_list[0]
sikaku_b_str = sikaku_list[1]
sikaku_a_int = int(sikaku_a_str)
sikaku_b_int = int(sikaku_b_str)
menseki = sikaku_a_int * sikaku_b_int
syui = 2 * (sikaku_a_int + sikaku_b_int)
print(menseki, ' ', syui)

Submission status: WA: Presentation Error

Solution code:
sikaku = input()
sikaku_list = sikaku.split(' ')
sikaku_a_str = sikaku_list[0]
sikaku_b_str = sikaku_list[1]
sikaku_a_int = int(sikaku_a_str)
sikaku_b_int = int(sikaku_b_str)
menseki = sikaku_a_int * sikaku_b_int
syui = (sikaku_a_int + sikaku_b_int) * 2
print(menseki, ' ', syui)

Submission status: WA: Presentation Error

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=input().split()
    a[0]=int(a[0])
    a[1]=int(a[1])
    c=area(a[0],a[1])
    d=perimeter_of_the_rectangle(a[0],a[1])
    print("{} {}".format(c,d),end="")

if __name__ == '__main__':
    Rectangle()

Submission status: WA: Presentation Error

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=input().split()
    a0=int(a[0])
    a1=int(a[1])
    c=area(a0,a1)
    d=perimeter_of_the_rectangle(a0,a1)
    print("{} {}".format(c,d),end="")

if __name__ == '__main__':
    Rectangle()

Submission status: WA: Presentation Error

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=input().split()
    a0=int(a[0])
    a1=int(a[1])
    c=area(a0,a1)
    d=perimeter_of_the_rectangle(a0,a1)
    print("{} {}".format(c,d),end="")

if __name__ == '__main__':
    Rectangle()

Submission status: WA: Presentation Error

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=input().split()
    a0=int(a[0])
    a1=int(a[1])
    c=area(a0,a1)
    d=perimeter_of_the_rectangle(a0,a1)
    print("{}{}".format(c,d),end="")

if __name__ == '__main__':
    Rectangle()

Submission status: WA: Presentation Error

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=input().split()
    a0=int(a[0])
    a1=int(a[1])
    c=area(a0,a1)
    d=perimeter_of_the_rectangle(a0,a1)
    print("{} {}".format(c,d),end="")

if __name__ == '__main__':
    Rectangle()

Submission status: WA: Presentation Error

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=input().split()
    a=int(a)
    b=int(b)
    c=area(a,b)
    d=perimeter_of_the_rectangle(a,b)
    print("{} {}".format(c,d),end="")

if __name__ == '__main__':
    Rectangle()

Submission status: WA: Presentation Error

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

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

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

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)