import java.util.*;

/**
 * Converts a user-entered number of hours, minutes, and seconds to seconds.
 */
public class FromSeconds
{
    public static final void main(String[] args)
    {
        // ask the user for the number of minutes, hours, and seconds
        Scanner scanner = new Scanner(System.in);

        System.out.print("Please enter the number of hours: ");
        int numHours = scanner.nextInt();

        System.out.print("Please enter the number of minutes: ");
        int numMinutes = scanner.nextInt();

        System.out.print("Please enter the number of seconds: ");
        int numSeconds = scanner.nextInt();

        // TODO: Perform the calculations to convert to total number of seconds.

        int totalSeconds = 0;

        System.out.println(numHours + " hours, " + numMinutes + " minutes, and " + numSeconds + " seconds equals " + totalSeconds + " total seconds.");
    }
}
