#C10911. Convert Seconds to Time Duration

    ID: 40169 Type: Default 1000ms 256MiB

Convert Seconds to Time Duration

Convert Seconds to Time Duration

You are given an integer number of seconds, \(N\). Your task is to convert \(N\) into a duration expressed in hours, minutes, and seconds. The conversion should use the formulas:

\(\text{hours} = \lfloor N/3600 \rfloor\),

\(\text{minutes} = \lfloor (N \mod 3600) / 60 \rfloor\),

\(\text{seconds} = N \mod 60\).

For example, if \(N = 3661\), the output should be "1 hours, 1 minutes and 1 seconds".

inputFormat

The input consists of a single integer \(N\) (in seconds) read from standard input.

outputFormat

The output is a single line string in the format: "X hours, Y minutes and Z seconds", where X, Y, Z are the computed hours, minutes and seconds respectively, printed to standard output.

## sample
3661
1 hours, 1 minutes and 1 seconds