import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;

public class Main {


    public static void main(String[] args) throws IOException {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
        int n = Integer.parseInt(str);
        if( 0 <= n && n <= 86400 ){
            int a = n / 3600;
            int b = (n % 3600) / 60;
            int c = (n % 3600) % 60;
            System.out.println(a + ":" + b + ":" + c);
        }
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.io.IOException; IOException java.io public class Main {


    public static void main(String[] args) throws IOException {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
        int n = Integer.parseInt(str);
        if( 0 <= n && n <= 86400 ){
            int a = n / 3600;
            int b = (n % 3600) / 60;
            int c = (n % 3600) % 60;
            System.out.println(a + ":" + b + ":" + c);
        }
    }
} Main public static void main(String[] args) throws IOException {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
        int n = Integer.parseInt(str);
        if( 0 <= n && n <= 86400 ){
            int a = n / 3600;
            int b = (n % 3600) / 60;
            int c = (n % 3600) % 60;
            System.out.println(a + ":" + b + ":" + c);
        }
    } main {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
        int n = Integer.parseInt(str);
        if( 0 <= n && n <= 86400 ){
            int a = n / 3600;
            int b = (n % 3600) / 60;
            int c = (n % 3600) % 60;
            System.out.println(a + ":" + b + ":" + c);
        }
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String str = br.readLine(); str br.readLine() br.readLine br int n = Integer.parseInt(str); n Integer.parseInt(str) Integer.parseInt Integer str if( 0 <= n && n <= 86400 ){
            int a = n / 3600;
            int b = (n % 3600) / 60;
            int c = (n % 3600) % 60;
            System.out.println(a + ":" + b + ":" + c);
        } 0 <= n && n <= 86400 0 <= n 0 n n <= 86400 n 86400 {
            int a = n / 3600;
            int b = (n % 3600) / 60;
            int c = (n % 3600) % 60;
            System.out.println(a + ":" + b + ":" + c);
        } int a = n / 3600; a n / 3600 n 3600 int b = (n % 3600) / 60; b (n % 3600) / 60 (n % 3600) n 3600 60 int c = (n % 3600) % 60; c (n % 3600) % 60 (n % 3600) n 3600 60 System.out.println(a + ":" + b + ":" + c) System.out.println System.out System System.out a + ":" + b + ":" + c ":" b a + ":" + b + ":" + c a ":" b ":" c String[] args args public class Main {


    public static void main(String[] args) throws IOException {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
        int n = Integer.parseInt(str);
        if( 0 <= n && n <= 86400 ){
            int a = n / 3600;
            int b = (n % 3600) / 60;
            int c = (n % 3600) % 60;
            System.out.println(a + ":" + b + ":" + c);
        }
    }
} public class Main {


    public static void main(String[] args) throws IOException {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
        int n = Integer.parseInt(str);
        if( 0 <= n && n <= 86400 ){
            int a = n / 3600;
            int b = (n % 3600) / 60;
            int c = (n % 3600) % 60;
            System.out.println(a + ":" + b + ":" + c);
        }
    }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;

public class Main {


    public static void main(String[] args) throws IOException {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
        int n = Integer.parseInt(str);
        if( 0 <= n && n <= 86400 ){
            int a = n / 3600;
            int b = (n % 3600) / 60;
            int c = (n % 3600) % 60;
            System.out.println(a + ":" + b + ":" + c);
        }
    }
}