Electronic clock#10229

Electronic clock

1 second
64 megabytes
Very easy

An electronic clock was activated with a new battery at midnight on the first day.It then operated for exactly minutes before stopping.Your task is to determine the day number and the clock's time in hours and minutes when it stopped.

Input

– the number of minutes (0 \leq M \leq 1000000)

Output

Provide three integers separated by spaces: the day number, the number of hours, and the number of minutes displayed on the clock when it stopped.

Examples

Example 1

Loading
Loading

Note

If minutes have passed since the start of the first day, this equates to hours and minutes. Therefore, the output should be:day number – , number of hours – , number of minutes – .