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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
#coding : utf-8
a, b = map(int, input().split()) # 1行に複数の入力を受け取る方法
area = a * b
cirlength = 2 * (a + b)
print (area, cirlength)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

print(s,l)

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
vertical, horizon = map(int, input().split(' '))

print(vertical * horizon, vertical * 2 + horizon * 2)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
inputs = input().split()
int_inputs = []
for i in inputs:
    int_inputs.append(int(i))

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

Submission status: Accepted

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

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

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

Submission status: Accepted

Solution code:
nums = input().rstrip().split()

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:

inp = input()
spl = inp.split(' ')
a = int(spl[0])
b = int(spl[1])
s = a * b
l = 2*a + 2*b
print(s, l)

Submission status: Accepted

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

def main():
    a, b = map(int,raw_input().split())
    print("%d %d" % (a*b,2*a+2*b))

if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

return s,l

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

print (a*b + " " + 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:
input sys

a = sys.argv[1]
b = sys.argv[2]
menseki = a * b
syui = (a * 2) + (b * 2)

print(menseki, syui)

Submission status: Runtime Error

Solution code:
input sys

a = sys.argv[1]
b = sys.argv[2]
menseki = a * b
syui = (a * 2) + (b * 2)

print(int(menseki), int(syui))

Submission status: Runtime Error

Solution code:
input sys

a = sys.argv[0]
b = sys.argv[1]
menseki = a * b
syui = (a * 2) + (b * 2)

print(int(menseki), int(syui))

Submission status: Runtime Error

Solution code:
input sys

a = sys.argv[0]
b = sys.argv[1]
menseki = a * b
syui = (a * 2) + (b * 2)

print(int(menseki)," "int(syui))

Submission status: Runtime Error

Solution code:
input sys

a = sys.argv[0]
b = sys.argv[1]
menseki = a * b
syui = (a * 2) + (b * 2)

print int(menseki)
print int(syui)

Submission status: Runtime Error

Solution code:
input sys

a = sys.argv[0]
b = sys.argv[1]
menseki = a * b
syui = (a * 2) + (b * 2)

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

Submission status: Runtime Error

Solution code:
input sys

a = int(sys.argv[0])
b = int(sys.argv[1])
menseki = a * b
syui = (a * 2) + (b * 2)

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
package main

import (
	"fmt"
)

func main(){
	var a, b int
	fmt.Scan(&a, &b)
	fmt.Println(a*b, 2*(a+b))
}

Submission status: Runtime Error

Solution code:
import java.util.Scanner;

public class Main {

public static void main(String[] args){
Scanner input = new Scanner(System.in);
int a = input.nextInt();
int b = input.nextInt();
int p = a*2 + b*2;
int ar = a*b;
System.out.println(ar+" "+p);
}
}

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a,b = input(),split()
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,b = input(),split()
c = int(a)
d = int(b)
print("c * d 2(c + d)")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
w = input('')
h = input('')
print(w*h)

Submission status: Runtime Error

Solution code:
w, h = input('')
print(w*h)

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

S = a*b
L = 2*a+2*b

print(S)
print(L)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
print(a*b)
print(2*(a+b))

Submission status: Runtime Error

Solution code:

print(2*(a+b))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
print((int(input())+int(input()))*2)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
print(a*b)
print(2(a+b))

Submission status: Runtime Error

Solution code:
print(a*b 2(a+b))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
area= a + b
perimeter = a*b
print(area, perimeter)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

print(a+""+b)

Submission status: Runtime Error

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

print(a+' '+b)

Submission status: Runtime Error

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

print(a+' '+b)

Submission status: Runtime Error

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

print(a)

Submission status: Runtime Error

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

print(S + " " + C)

Submission status: Runtime Error

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

print(S + " " + C)

Submission status: Runtime Error

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

print(S + " " + C)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
def method(input()):
    l = input().split(' ')
    square = int.l[0] * int.l[1]
    length = 2 * int.l[0] + 2* int.l[1]
    print(square length)

method(input(3 5))

Submission status: Runtime Error

Solution code:
def method(input()):
    l = input().split(' ')
    square = int(l[0]) * int(l[1])
    length = 2 * int(l[0]) + 2* int(l[1])
    print(square length)

method(input(3 5))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
ab=input()
print(ab.split(' ')[0]*ab.split(' ')[1]+" "+(ab.split(' ')[0]+ab.split(' ')[1])*2)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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 = float(input())
b =float(input())
print(a+b)
print(a*b)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
for ( int i = 0; i < 4; i++ ){
    for ( int j = 0; j < 8; j++ ){
        cout << "#";
    }
    cout << endl;
}

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Solution code:
#coding: UTF-8

x = raw_input().split()

y = map(int,x)

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

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

print c, d

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
hj

Submission status: Runtime Error

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

print(y, x)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

print(x, y)

Submission status: Runtime Error

Solution code:
x=int(input())
print(x/3600, ':', (x-x/3600)/60, ':', x-{(x-x/3600)/60}, sep='')

Submission status: Runtime Error

Solution code:
x=int(input())

print(x//3600, ':', (x-x//3600)//60, ':', x-{(x-x//3600)//60}, sep='')

Submission status: Runtime Error

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

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n,n1=input().split()
a=n
b=n1
S=a*b
L=(2*a)+(2*b)
print(S' 'L)

Submission status: Runtime Error

Solution code:
n=input().split()
a=n[0]
b=n[1]
S=a*b
L=(2*a)+(2*b)
print(S' 'L)

Submission status: Runtime Error

Solution code:
n=input()
s=n.split()
a=s[0]
b=s[1]
S=a*b
L=(2*a)+(2*b)
print(S' 'L)

Submission status: Runtime Error

Solution code:
n=input()
s=int(n.split())
a=s[0]
b=s[1]
S=a*b
L=(2*a)+(2*b)
print(S' 'L)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
#cording; UTF-8

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

a = y[0]
b = y[1]
S = a*b
L  = 2*(a+b)
print(S' 'L)

Submission status: Runtime Error

Solution code:
#cording; UTF-8

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

a = y[0]
b = y[1]
S = a*b
L  = 2*(a+b)
print S, L

Submission status: Runtime Error

Solution code:
#cording; UTF-8

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

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

Submission status: Runtime Error

Solution code:
#cording; UTF-8

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

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

Submission status: Runtime Error

Solution code:
#cording; UTF-8
a,b=[int(x) for x in input().split()]

S = a*b
L = 2*(a+b)
print(s, l)

Submission status: Runtime Error

Solution code:
width = float(input('Please Enter the Width of a Rectangle: '))
height = float(input('Please Enter the Height of a Rectangle: '))
# calculate the area of rectangle
Area = width * height

# calculate the Perimeter
Perimeter = 2 * (width + height)

print("\n Area of a Rectangle is: %.2f" %Area)
print(" Perimeter of Rectangle is: %.2f" %Perimeter)

Submission status: Runtime Error

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

area,perimeter = rect(a,b)
print(area, perimater)

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

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

Submission status: Runtime Error

Solution code:
 # problem 1=C Rectangle
 
 s = input()
 x = s.split()
 
 a = int(x[0])
 b = int(x[1])
 
 print (a*b,2*(a+b))

Submission status: Runtime Error

Solution code:
# problem 1=C Rectangle
 
s = input()
x = s.split()
 
a = int(x[0])
b = int(x[1])
 
print (a*b,2*(a+b)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import sys

data=int(input())
data2=int(input())

print((data*data2), 2*(data+data2))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

print(a + " " + b);

Submission status: Runtime Error

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

print(a + " " + b)

Submission status: Runtime Error

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

print(num[0] + " " + num[1])

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = raw_input()
print("%d %d" % (int(n[0]) * int(n[2]), 2 * (int(n[0]) + int(n[2])) ))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a=list(input())
print a[0]*a[1]
print 2*a[0]+2*a[1]

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
x = raw_input()
a = int(x[0:1])
b = int(x[2:3])
aa = a*2 + b*2
bb = a*b

print bb + " " + aa

Submission status: Runtime Error

Solution code:
x = raw_input()
a = int(x[0:1])
b = int(x[2:3])
aa = a*2 + b*2
bb = a*b
print bb + " " + aa

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
if __name__ == '__main__':
	input_a = input()
	input_b = input()
	a = 2*input_a+2*input_b
	b = input_a*input_b
	print b, a