/*
Jackson Simoneau
SI@UCF 2026 - Intro to Competitive Programming

Solution to https://open.kattis.com/problems/secondopinion
*/

#include <bits/stdc++.h>
using namespace std;

//Passes s by reference to compute the number of hours
int hours(int &s) {
    //h is the number of hours in s
    int h = s/(60*60);
    //Set s to the remaining number of seconds that are not in a whole hour
    s %= (60*60);
    return h;
}

//Passes s by reference to compute the number of minutes
int minutes(int &s) {
    //m is the number of minutes in s
    int m = s/60;
    //Set s to the remaining number of seconds that are not in a whole minute
    s %= 60;
    return m;
}

int main() {
    int s;
    cin >> s;
    //Find the number of hours and minutes
    //The remaining value in s is the number of seconds
    int h = hours(s), m = minutes(s);
    cout << h << " : " << m << " : " << s << endl;
}