// Arup Guha
// 7/12/2011

// Written in BHCSI class - example program that performs a calculation.
// This program gets information about a lemonade stand and then calculates
// the profit.

import java.util.*;

public class lemonade {

	// Constants used for the problem.
	final static int COST_SUGAR = 25;
	final static int COST_LEMON = 10;
	final static int LEMONS_PER_PITCHER = 20;
	final static int CUPS_PER_PITCHER = 8;

	public static void main(String[] args) {

		Scanner stdin = new Scanner(System.in);

		// Get the user input.
		System.out.println("How many pitchers are you making?");
		int numPitchers = stdin.nextInt();

		System.out.println("What is the cost per cup of lemonade, in cents?");
		int costCup = stdin.nextInt();

		// Calculate cost of one pitcher - add sugar cost and lemon cost.
		int pitcherCost = COST_SUGAR + LEMONS_PER_PITCHER*COST_LEMON;

		// Calculate the cost of all the pitchers, this is your total cost.
		int totalCost = numPitchers*pitcherCost;

		// Calculate the money earned from one pitcher of lemonade
		int earnedPitcher = CUPS_PER_PITCHER*costCup;

		// Calculate the money earned from all the pitchers.
		int totalRevenue = earnedPitcher*numPitchers;

		// Subtract the cost from the money earned to get the profit.
		int profit = totalRevenue - totalCost;

		System.out.println("Your profit is "+profit+" cents.");
	}
}