Problems
424 - Split Time
SUBMIT PROBLEM

Split Time

Time Limit: 1 sec

 

The Problem

Write a computer program that read time, and split the time to hour(s) and minute(s).

 

[Don't forget about singular and plural form of hour and minute]

Example

10:30

10 Hours 30 Minutes

01:01

1 Hour 1 Minute

01:30

1 Hour 30 Minutes

 

The Input

The input file contains several lines of input. Each line contains one string. The strings that denote time is of the format hh:mm (two digit for hour and two digit for minute). Input is terminated by end of file (EOF).

 

The Output

For each line of input, output will show one line the hour(s) and minute(s). See the sample output.

 

Sample Input

10:30

01:01

00:10

 

Sample Output

10 Hours 30 Minutes

1 Hour 1 Minute

10 Minutes

 

 

 

 

Problem Setter: Shahin ShamS