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: Wrong Answer

Solution code:
def main(arg):
    numbers = [int(x) for x in arg.split(" ")]
    s = numbers[0] * numbers[1]
    p = (numbers[0] + numbers[1]) * 2
    return s,p


if __name__ == '__main__':
    print(main(input()))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys

a,b = map(int, sys.stdin.readline().rstrip().split(' '))
print(a*b)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b=map(int,raw_input().split())
if 0<=b<=100 and 0<=b<=100:
    print a*b
    print a*2+b*2
else:
    pass

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
i = j = 0
n = ''
m = ''


line = input()

while line[i] != ' ':
    n = n + line[i]
    i += 1
    
while i < len(line):
    m = m + line[i]
    i += 1
    
n = int(n)
m = int(m)

print(n*m)

Submission status: Wrong Answer

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

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

print(c)

Submission status: Wrong Answer

Solution code:
y = 3
x = 5
ans = y * x
print(ans)

Submission status: Wrong Answer

Solution code:
y = 3
x = 5
p = 3.14
ans = y * x * p
print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x=str(input())
n=x.split(" ", 2)
a=int(n[0])
b=int(n[1])
ab=a*b
a_b=(a+b)*2
print('ab', end=' ')
print('a_b')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a = 3
b = 5
ans = 3 * 5
d = ans * 3.14
print(d)

Submission status: Wrong Answer

Solution code:
a = 3
b = 5
ans = 2 * (a + b)
print(ans)

Submission status: Wrong Answer

Solution code:
a = 3 
b = 5
ans = a * b
ans2 = 2 * (a + b)
print(ans, ans2)

Submission status: Wrong Answer

Solution code:
a = 3
b = 5
ans = a * b
v = 2 * (a + b)
print(ans ,v)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a = 3
b = 5
c = a * b
d = 2 *(a + b)
print("c d")

Submission status: Wrong Answer

Solution code:

[a,b]=input().split()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
list1 = [int(i) for i in input().split()]
print("{0} {1}")

Submission status: Wrong Answer

Solution code:
item = [int(i) for i in input().split()]
print(item)

Submission status: Wrong Answer

Solution code:
item = [int(i) for i in input().split()]
print(item[0])

Submission status: Wrong Answer

Solution code:
item = [int(i) for i in input().split()]
print(item[0]*item[1])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
val = input()
sp_val = val.split()

print(int(sp_val[0]) * int(sp_val[1]))

Submission status: Wrong Answer

Solution code:
a = 3
b = 5
print( a, b )
area = a*b
line = 2*a + 2*b
print( area, line )

Submission status: Wrong Answer

Solution code:

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

S = a*b
l = a*(a+b)

print S, l

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

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

print('{} {}'.format(SideLength(a, b), SquareArea(a, b)))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:

x = input()
split_x = x.split(sep=" ")
a = int(split_x[0])
b = int(split_x[1])


Circumference = str(a*2 + b*2)
Area = str(a *b)
print(Circumference + " " + Area)

Submission status: Wrong Answer

Solution code:
x=raw_input()
z=x.split()
x=[3,5]
y=x[0]*x[1]
a=x[0]*2+x[1]*2
print y,a

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def length(a, b):
    return 2*a+2*b
def space (a, b):
    return a * b
    
list = map(int, raw_input().split(' '))
print u'{} {}'.format(length(list[0],list[1]), space(list[0], list[1]))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
my_value = input()
my_value_list = ([int(x) for x in my_value.split()])

print("{} {}".format(my_value_list[0]*my_value_list[1], my_value_list[0]+my_value_list[1]))

Submission status: Wrong Answer

Solution code:
x,y = 3,2

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

for i in range(len(a)):
    if i == 0:
        print(a[i], end="")
    else:
        print(' ', end="")
        print(a[i], end="")

Submission status: Wrong Answer

Solution code:
def main(a, b):
    print(a*b,' ',2*(a+b),'\n')

Submission status: Wrong Answer

Solution code:
def main(a, b):
    print(a*b,2*(a+b),'\n')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:

def calc(a, b):
    area = a * b
    circumference = (a * 2) + (b * 2)
    return area, circumference

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

print(calc(a, b))

Submission status: Wrong Answer

Solution code:
def calc(a, b):
    area = a * b
    circumference = 2 * (a + b)
    return area, circumference

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

print(calc(a, b))

Submission status: Wrong Answer

Solution code:
InputData=[]
while True:
    try:
        in1,in2 = map(int,raw_input().split(" "))  # Python2
        if in1==0 and in2==0 : break
        InputData.append([in1,in2])
    except EOFError:
        break

for i in range(len(InputData)):
    in1,in2 = InputData[i]
    print(int(in1) * int(in2))
    print(int(in1) + int(in2) + int(in1) + int(in2))

Submission status: Wrong Answer

Solution code:
InputData=[]
while True:
    try:
        in1,in2 = map(int,raw_input().split(" "))  # Python2
        if in1==0 and in2==0 : break
        InputData.append([in1,in2])
    except EOFError:
        break

for i in range(len(InputData)):
    in1,in2 = InputData[i]
    print(int(in1) * int(in2))

Submission status: Wrong Answer

Solution code:
a = input()
num = a.split()
x, y = int(num[0]), int(num[1])
if (3 <= x <= 5) and (3 <= y <= 5):
    print(str(x * y)+ ' ' +  str((x + y) * 2))

Submission status: Wrong Answer

Solution code:
def getSquare(h, w):
    return h * w

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
str_input = input()
list_input = str_input.split(" ")
print(list_input)
a = int(list_input[0])
b = int(list_input[1])
area = a * b
circ = (a + b) * 2
print(area, circ, end="")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#実際の計算
hight = int(3)
wide = int(5)
area = hight*wide
length = (hight+ｗide)*2
print(area)
print(length)

Submission status: Wrong Answer

Solution code:
#実際の計算
hight = int(3)
wide = int(5)
area = hight*wide
length = (hight+ｗide)*2
print(area,length)

Submission status: Wrong Answer

Solution code:
hight = int(3)
wide = int(5)
area = hight*wide
length = (hight+ｗide)*2
print(area,length)

Submission status: Wrong Answer

Solution code:
hight = int(3)
wide = int(5)
area = hight*wide
length = (hight+ｗide)*2
print(area,length)

Submission status: Wrong Answer

Solution code:
#実際の計算
a = int(3)
b = int(5)
area = a*b
length = (a+b)*2
print(area,length)

Submission status: Wrong Answer

Solution code:
a,b = 3,5
print(a,b)
area = a*b
length = (a+b)*2
print(area,length)

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
"""
Created on Tue Jan 09 20:40:07 2018

@author: Fujiichang
"""

if __name__ == "__main__":
    a = map(int, raw_input().split())

    print a[0] * a[1]

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
l = list(map(int, input().split()))
area = l[0] * l[1]
perimeter = l[0] * 2 + l[1] * 2
print(area)
print(perimeter)
# print('{0} {1}.format(area, perimeter))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

print(tateyoko[0])
print(tateyoko[1])
area = int(tateyoko[0]) * int(tateyoko[1])
circuit = int(tateyoko[0]) ** 2 + int(tateyoko[1]) ** 2

print(str(area) + ' ' + str(circuit))

Submission status: Wrong Answer

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

print(tateyoko[0])
print(tateyoko[1])
area = int(tateyoko[0]) * int(tateyoko[1])
circuit = int(tateyoko[0]) * 2 + int(tateyoko[1]) * 2

print(str(area) + ' ' + str(circuit))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
z = input()

z = z.split( )
a = int(z[0]) * int(z[1])
b = int(z[0]) * 2 + int(z[1]) * 2

print(str(a) + ',' + str(b))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#coding: UTF-8

x = input('>').split()

y = list(map(int,x))

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

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

print(c,d)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

#n = [int(i) for i in n]
print(n[0] * n[1])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:

x = input()

a = int( x.split(' ')[0] )

b = int( x.split(' ')[0] )

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
ab = [int(n) for n in input().split()]

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

Solution code:

line=(input())
line.split()

print(line)
print(line[0])

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

p=(a+b)*2
Area=a*b

print(Area,p)

Submission status: Wrong Answer

Solution code:

line=(input())
line.split()

print(line)
print(line[0])

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

p=(a+b)*2
Area=a*b

print(p,Area)

Submission status: Wrong Answer

Solution code:
#
line=(input())
line.split()

print(line)
print(line[0])

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

p=(a+b)*2
Area=a*b

print(Area,p)

Submission status: Wrong Answer

Solution code:

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
print("Sample Input:")
a,b=map(int,input().split())
men=a*b
syu=2*a+2*b
print("Sample Output:")
print(men,syu)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import re
numbers = input()
lines = re.split(" ", numbers)
a = int(lines[0])
b = int(lines[1])

print(a * b / 2)

Submission status: Wrong Answer

Solution code:
numbers = input()
lines = numbers.split(" ")
a = int(lines[0])
b = int(lines[1])
print(a * b / 2)

Submission status: Wrong Answer

Solution code:
numbers = input()
lines = numbers.split(" ")
a = int(lines[0])
b = int(lines[1])
print(a * b)

Submission status: Wrong Answer

Solution code:
a=input
b=input

print('a*b')

print('2a+2b')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:

a = map(int, raw_input().split())
print('%s %d' % (a[0],a[1]))

Submission status: Wrong Answer

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

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

print(men)
print(syu)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

for i in area_list:
    vertical = area_list[0]
    side = area_list[1]

if 1 <= int(vertical):
    if int(side) <= 100:
        area = int(vertical) * int(side)
        length = 2 + (int(vertical) * int(side))
        print (str(area) + " " + str(length))

Submission status: Wrong Answer

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: Wrong Answer

Solution code:
a = 1000
b = 3000
c = (a + b) / 2
print(c)

Submission status: Wrong Answer

Solution code:
a = 1000
b = 3000
c = (a + b) /2
c

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

print(str(d) + " " + str(e))

Submission status: Wrong Answer

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

print(str(d)+ " " +str(e))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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(totalLength)+" "+str(menseki)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
print(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:
import sys


def main():
    a, b = sys.stdin.readline().split(" ")
    a, b = int(a), int(b)
    print("{0} {1}".format(a*b, a*2 + b*2))
    return


if __name__ == '__main__':
    main()

Submission status: Accepted

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

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

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:
s = input()
s = s.split()
n = []

for i in s:
    n.append(int(i))

print(n[0] * n[1],end = " ")
print(2 * n[0] + 2 * n[1])

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# your code goes here
in1,in2 = map(int, input().split())
print(in1 * in2, in1 * 2 + in2 * 2)

Submission status: Accepted

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

Submission status: Accepted

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

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

def main():
    a,b = map(int,input().split())
    ar = area(a,b)
    pe = perimetro(a,b)
    return ar, pe

ar, pe = main()

print(ar, pe)

Submission status: Accepted

Solution code:
#AOJ ITP1_1_C

N = input().split()
area = 0
perimeter = 0

length=int(N[0])
breadth=int(N[1])

area = length * breadth
perimeter = (length + breadth) * 2

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
inputs = input().split(' ')
height = int(inputs[0])
width = int(inputs[1])
area = height * width
length = height * 2 + width * 2
print(area, length)

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

area = int(valiables[0]) * int(valiables[1])
perimeter = int(valiables[0])*2 + int(valiables[1])*2

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
dato=raw_input()
a=int(dato[:dato.find(' ')])
b=int(dato[dato.find(' '):])
A=str(a*b)
P=str(2*a+2*b)
print A+" "+P

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
row, col = [int(i) for i in input().rstrip().split(" ")]
area, leng = row * col, 2*(row+col)
print(area, leng)

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
# print ("Enter length and width")
a,b=map(int,sys.stdin.readline().split())
area=a*b;
peri=a+a+b+b;
print(area,peri)

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, (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:
data = [int(i) for i in input().split()]
print(f'{data[0] * data[1]} {data[0] * 2 + data[1] * 2}')

Submission status: Accepted

Solution code:
from sys import stdin

a, b = [int(x) for x in stdin.readline().rstrip().split()]
print(a*b, 2*(a+b))

Submission status: Accepted

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

print(str(S) + " " + str(C))

Submission status: Accepted

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

print('{0} {1}'.format(z,m))

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

Submission status: Accepted

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

Submission status: Accepted

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

'''
a = int(l[0])
b = int(l[1])
'''
#存在していないインデックスは出せない
l = list(map(int,l))

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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