// MPG.java   Simple program to compute gas mileage
// P. Conrad CISC370 06/07/2007

class MPG {

    /**
     *  Ask user for input, and compute result
     */

    public static void main (String args[])   {
	
	if (args.length!=3) {
	    System.out.println("Usage: java MPG start end gallons");
	    System.exit(0);
	}

	int start = Integer.parseInt(args[0]);
	int end = Integer.parseInt(args[1]);
	double gallons = Double.parseDouble(args[2]);

	int distance = end - start;
	double mpg = distance/gallons;

	System.out.println("MPG is " + mpg);

    }

}
