Skip to main content
Thursday (26.11.2026) at 20:00: ALGOR Contest: Round #5 starts!

~/algor $ cat problems/integer-kun-soat-daqiqa-soniya

Days, Hours, Minutes, and Seconds

Easy 1000 ms 64 MB 8%
Share
Converting seconds into days, hours, minutes, and seconds

Given an integer $N$ representing a duration in seconds. Determine how many full days, hours, minutes, and seconds it represents: hours must be less than $24$, minutes and seconds must be less than $60$ ($1$ day $= 24$ hours).

Input

A single integer $N$.

Output

In a single line, four integers: days, hours, minutes, and seconds.

Note

$0 \le N \le 10^9$

Examples

Input #1

                                        
Output #1

                                        
Input #2

                                        
Output #2

                                        

Sign in to submit a solution

Signing up is free and takes a minute.