
import java.io.*;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) throws IOException {
		// TODO Auto-generated method stub
		int h = 0;
		int jikan = 0;
		int fun = 0;
		int nokori = 0;
		int amari = 0;
		int m = 0;
		int se = 0;
		Scanner scan = new Scanner(System.in);
        String s = scan.next();
        int S = Integer.parseInt(s);
        h = S/3600;
        jikan = h*3600;
        nokori = S - jikan;
        m = nokori/60;
       fun = m*60;
       int  hiku  = 0;
       hiku = fun+jikan;
       amari = S - hiku;
        se = amari;
        System.out.print(h);
        System.out.print(":" + m);
        System.out.println(":" + se);
		
	}
} import java.io.*; io.* java import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) throws IOException {
		// TODO Auto-generated method stub
		int h = 0;
		int jikan = 0;
		int fun = 0;
		int nokori = 0;
		int amari = 0;
		int m = 0;
		int se = 0;
		Scanner scan = new Scanner(System.in);
        String s = scan.next();
        int S = Integer.parseInt(s);
        h = S/3600;
        jikan = h*3600;
        nokori = S - jikan;
        m = nokori/60;
       fun = m*60;
       int  hiku  = 0;
       hiku = fun+jikan;
       amari = S - hiku;
        se = amari;
        System.out.print(h);
        System.out.print(":" + m);
        System.out.println(":" + se);
		
	}
} Main public static void main(String[] args) throws IOException {
		// TODO Auto-generated method stub
		int h = 0;
		int jikan = 0;
		int fun = 0;
		int nokori = 0;
		int amari = 0;
		int m = 0;
		int se = 0;
		Scanner scan = new Scanner(System.in);
        String s = scan.next();
        int S = Integer.parseInt(s);
        h = S/3600;
        jikan = h*3600;
        nokori = S - jikan;
        m = nokori/60;
       fun = m*60;
       int  hiku  = 0;
       hiku = fun+jikan;
       amari = S - hiku;
        se = amari;
        System.out.print(h);
        System.out.print(":" + m);
        System.out.println(":" + se);
		
	} main {
		// TODO Auto-generated method stub
		int h = 0;
		int jikan = 0;
		int fun = 0;
		int nokori = 0;
		int amari = 0;
		int m = 0;
		int se = 0;
		Scanner scan = new Scanner(System.in);
        String s = scan.next();
        int S = Integer.parseInt(s);
        h = S/3600;
        jikan = h*3600;
        nokori = S - jikan;
        m = nokori/60;
       fun = m*60;
       int  hiku  = 0;
       hiku = fun+jikan;
       amari = S - hiku;
        se = amari;
        System.out.print(h);
        System.out.print(":" + m);
        System.out.println(":" + se);
		
	} int h = 0; h 0 int jikan = 0; jikan 0 int fun = 0; fun 0 int nokori = 0; nokori 0 int amari = 0; amari 0 int m = 0; m 0 int se = 0; se 0 Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String s = scan.next(); s scan.next() scan.next scan int S = Integer.parseInt(s); S Integer.parseInt(s) Integer.parseInt Integer s h = S/3600 h S/3600 S 3600 jikan = h*3600 jikan h*3600 h 3600 nokori = S - jikan nokori S - jikan S jikan m = nokori/60 m nokori/60 nokori 60 fun = m*60 fun m*60 m 60 int  hiku  = 0; hiku 0 hiku = fun+jikan hiku fun+jikan fun jikan amari = S - hiku amari S - hiku S hiku se = amari se amari System.out.print(h) System.out.print System.out System System.out h System.out.print(":" + m) System.out.print System.out System System.out ":" + m ":" m System.out.println(":" + se) System.out.println System.out System System.out ":" + se ":" se String[] args args public class Main {

	public static void main(String[] args) throws IOException {
		// TODO Auto-generated method stub
		int h = 0;
		int jikan = 0;
		int fun = 0;
		int nokori = 0;
		int amari = 0;
		int m = 0;
		int se = 0;
		Scanner scan = new Scanner(System.in);
        String s = scan.next();
        int S = Integer.parseInt(s);
        h = S/3600;
        jikan = h*3600;
        nokori = S - jikan;
        m = nokori/60;
       fun = m*60;
       int  hiku  = 0;
       hiku = fun+jikan;
       amari = S - hiku;
        se = amari;
        System.out.print(h);
        System.out.print(":" + m);
        System.out.println(":" + se);
		
	}
} public class Main {

	public static void main(String[] args) throws IOException {
		// TODO Auto-generated method stub
		int h = 0;
		int jikan = 0;
		int fun = 0;
		int nokori = 0;
		int amari = 0;
		int m = 0;
		int se = 0;
		Scanner scan = new Scanner(System.in);
        String s = scan.next();
        int S = Integer.parseInt(s);
        h = S/3600;
        jikan = h*3600;
        nokori = S - jikan;
        m = nokori/60;
       fun = m*60;
       int  hiku  = 0;
       hiku = fun+jikan;
       amari = S - hiku;
        se = amari;
        System.out.print(h);
        System.out.print(":" + m);
        System.out.println(":" + se);
		
	}
} Main

import java.io.*;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) throws IOException {
		// TODO Auto-generated method stub
		int h = 0;
		int jikan = 0;
		int fun = 0;
		int nokori = 0;
		int amari = 0;
		int m = 0;
		int se = 0;
		Scanner scan = new Scanner(System.in);
        String s = scan.next();
        int S = Integer.parseInt(s);
        h = S/3600;
        jikan = h*3600;
        nokori = S - jikan;
        m = nokori/60;
       fun = m*60;
       int  hiku  = 0;
       hiku = fun+jikan;
       amari = S - hiku;
        se = amari;
        System.out.print(h);
        System.out.print(":" + m);
        System.out.println(":" + se);
		
	}
}