# -*- coding: utf-8 -*-
"""
Created on Tue Oct  9 20:30:10 2018

@author: JinJheng
"""

h=eval(input())
w=eval(input())
p=h*2+w*2
a=h*w
print("Height = %.2f"%h)
print("Width = %.2f"%w)
print("Perimeter = %.2f"%p)
print("Area = %.2f"%a)
# -*- coding: utf-8 -*-
"""
Created on Tue Oct  9 20:30:10 2018

@author: JinJheng
"""

h=eval(input())
w=eval(input())
p=h*2+w*2
a=h*w
print("Height = %.2f"%h)
print("Width = %.2f"%w)
print("Perimeter = %.2f"%p)
print("Area = %.2f"%a)
# -*- coding: utf-8 -*- Created on Tue Oct  9 20:30:10 2018
 
 @author: JinJheng