# -*- coding: utf-8 -*-
"""
Created on Sun Dec  4 17:55:36 2016

@author: jagan
"""

legnth= int (input ("input legnth:"))
width= int (input ("input width:"))
print ("area=",legnth*width)
print ("perimeter=",2*(legnth+width))
