

public class Fence {
	
	public static void main(String[] args) {

		scanner stdin = new Scanner(System.in);
		
		System.out.println("Enter the length of fence in feet you are buying.);
		int length = stdin.nextInt();
		
		System.out.println("What is the cost of the fence per foot?");
		double cost = stdin.nextdouble();
		
		System.out.println("What is the revenue generated per square foot?");
		revenue = stdin.nextdouble();
		
		int area = length*length/4;
		int profit = area*(cost - length)*revenue;
		
		System.out.println("Your profit will be + profit + dollars.");		
	}
}