/*****************************************************************
** CountIt - count change given quarters, dimes, nickels, and
**               pennies
**
** (c) Scott MacKenzie, 2001                             
******************************************************************/
import java.io.*;

public class CountIt
{
   public static void main(String[] args) throws IOException
   {
      BufferedReader stdin =
         new BufferedReader(new InputStreamReader(System.in), 1);

      // input sum of change
      System.out.print("How many twoonies: ");
      int twoonies = Integer.parseInt(stdin.readLine());

      System.out.print("How many loonies: ");
      int loonies = Integer.parseInt(stdin.readLine());

      System.out.print("How many quarters: ");
      int quarters = Integer.parseInt(stdin.readLine());

      System.out.print("How many dimes: ");
      int dimes = Integer.parseInt(stdin.readLine());

      System.out.print("How many nickels: ");
      int nickels = Integer.parseInt(stdin.readLine());

      System.out.print("How many pennies: ");
      int pennies = Integer.parseInt(stdin.readLine());

      // compute total number of pennies
      double total = twoonies * 200 + loonies * 100 +
         quarters * 25 + dimes * 10 + nickels * 5 + pennies;

      System.out.println("Total: $" + total / 100);
   }
}

