import java.util.Scanner;

class Main {
    static final int hMin = 60;
    static final int hSec = 3600;
    public static void main(String[] args) throws Exception{
        Scanner input = new Scanner(System.in);
        int hs = input.nextInt();
        int ms = hs%hSec;
        int cs = ms%60;
        System.out.println(hs/hSec+":"+ms/hMin+":"+cs);
    }
} import java.util.Scanner; Scanner java.util class Main {
    static final int hMin = 60;
    static final int hSec = 3600;
    public static void main(String[] args) throws Exception{
        Scanner input = new Scanner(System.in);
        int hs = input.nextInt();
        int ms = hs%hSec;
        int cs = ms%60;
        System.out.println(hs/hSec+":"+ms/hMin+":"+cs);
    }
} Main static final int hMin = 60; hMin 60 static final int hSec = 3600; hSec 3600 public static void main(String[] args) throws Exception{
        Scanner input = new Scanner(System.in);
        int hs = input.nextInt();
        int ms = hs%hSec;
        int cs = ms%60;
        System.out.println(hs/hSec+":"+ms/hMin+":"+cs);
    } main {
        Scanner input = new Scanner(System.in);
        int hs = input.nextInt();
        int ms = hs%hSec;
        int cs = ms%60;
        System.out.println(hs/hSec+":"+ms/hMin+":"+cs);
    } Scanner input = new Scanner(System.in); input new Scanner(System.in) int hs = input.nextInt(); hs input.nextInt() input.nextInt input int ms = hs%hSec; ms hs%hSec hs hSec int cs = ms%60; cs ms%60 ms 60 System.out.println(hs/hSec+":"+ms/hMin+":"+cs) System.out.println System.out System System.out hs/hSec+":"+ms/hMin+":"+cs ":" ms/hMin hs/hSec+":"+ms/hMin+":"+cs hs/hSec hs hSec ":" ms/hMin ms hMin ":" cs String[] args args
import java.util.Scanner;

class Main {
    static final int hMin = 60;
    static final int hSec = 3600;
    public static void main(String[] args) throws Exception{
        Scanner input = new Scanner(System.in);
        int hs = input.nextInt();
        int ms = hs%hSec;
        int cs = ms%60;
        System.out.println(hs/hSec+":"+ms/hMin+":"+cs);
    }
}