// Arup Guha
// 9/10/2026
// Solution to Fall 2026 COP 3330 Exam #1 Question #1

public class e1q1 {

	public static void main(String[] args) {
		
		double res = 0.0;
		Scanner stdin = new Scanner(System.in);
		
		System.out.println("How long was the trip in miles?");
		int length = stdin.nextInt();
		
		System.out.println("What was the average speed in mph for the trip?");
		int mpg = stdin.nextInt();
		
		System.out.println("How many minutes did you stop during the trip?");
		int stopMin = stdin.nextInt();
		
		res = 1.0*length/mpg + stopMin/60.0;

		System.out.println("Your trip took "+ res +" hours.");
	}

}