// Arup Guha
// 8/26/2026
// Program to illustrate use of Scanner.

import java.util.*;

public class rectangle2 {

	public static void main(String[] args) {
	
		// Create a scanner object.
		Scanner stdin = new Scanner(System.in);
	
		// Get the rectangle dimensions.
		System.out.println("Please enter the length of your plot of land.");
		int length = stdin.nextInt();
		System.out.println("Please enter the width of your plot of land.");
		int width = stdin.nextInt();
		int area = length*width;
		
		// Get cost per unit of grass.
		System.out.println("How much does a square foot of sod cost in dollars?");
		double costPerUnit = stdin.nextDouble();
		
		// Print out area.
		System.out.println("The area of the rectangle is "+area);
		
		// Print out cost for resodding.
		double totalCost = costPerUnit*area;
		System.out.println("It will cost you $"+totalCost+" to resod your lawn.");
		System.out.printf("It will cost you $%,.2f to resod your lawn.\n",totalCost);
	}
}