Clock 3#9935

Clock 3

1 second
64 megabytes
Very easy

The clock started running at midnight on the first day and continued until it stopped minutes later. Your task is to determine and output the day number, along with the time displayed on the clock in hours and minutes when it stopped.

Input

An integer , where m < 10^9.

Output

Provide three integers on a single line, separated by spaces.

Examples

Example 1

Loading
Loading