12380 - Low Wage   

Description

John is a poor worker in a factory.
His hourly wage is only X TWD/hour.
He works from H1:M1:S1 to H2:M2:S2 everyday.
Because the factory is black-hearted, if the working time is A hours B minutes C seconds, the daily wage is only A*X TWD.
Your task is to calculate John's working time and daily wage.

Example:
The Hourly wage is 125 TWD/hour. John works from 8:00:00 to 20:30:00, then his working time is 12 hour 30 minutes 0 seconds, and daily wage is 1500 TWD.

Input

On the first line, a number X represents John's hourly wage.
On the second line, H1:M1:S1 ~ H2:M2:S2 represents the time John start/end working.

0 <= X <= 10000
0 <= H1, H2 <= 23
0 <= M1, M2, S1, S2 <= 59

It's guaranteed that H1:M1:S1 is earlier than H2:M2:S2

Output

Output John's working time and daily wage.
The first line: "Working Time: A Hour(s) B Minute(s) C Second(s)".
The second line: "Daily Wage: D TWD".
A, B, C, D should be replaced by four numbers.

Please refer to the sample input/output for the precise format, and there is a '\n' at the end of each line.

Sample Input  Download

Sample Output  Download

Tags




Discuss