import java.util.Scanner;
class Main{
    int x,h,m,m1,s,s1;  
    public void yatary() {
        Scanner sc = new Scanner(System.in);
        x =sc.nextInt();
        h =x / 3600; 
        m =x % 3600;
        m1 = m / 60;
        s = x % 3600;
        s1 = s % 60;
        System.out.println(h + ":" + m1 + ":" + s1);
    }
    public static void main(String[] args){
    new Main().yatary();
    }
} import java.util.Scanner; Scanner java.util class Main{
    int x,h,m,m1,s,s1;  
    public void yatary() {
        Scanner sc = new Scanner(System.in);
        x =sc.nextInt();
        h =x / 3600; 
        m =x % 3600;
        m1 = m / 60;
        s = x % 3600;
        s1 = s % 60;
        System.out.println(h + ":" + m1 + ":" + s1);
    }
    public static void main(String[] args){
    new Main().yatary();
    }
} Main int x x h h m m m1 m1 s s s1; s1 public void yatary() {
        Scanner sc = new Scanner(System.in);
        x =sc.nextInt();
        h =x / 3600; 
        m =x % 3600;
        m1 = m / 60;
        s = x % 3600;
        s1 = s % 60;
        System.out.println(h + ":" + m1 + ":" + s1);
    } yatary {
        Scanner sc = new Scanner(System.in);
        x =sc.nextInt();
        h =x / 3600; 
        m =x % 3600;
        m1 = m / 60;
        s = x % 3600;
        s1 = s % 60;
        System.out.println(h + ":" + m1 + ":" + s1);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) x =sc.nextInt() x sc.nextInt() sc.nextInt sc h =x / 3600 h x / 3600 x 3600 m =x % 3600 m x % 3600 x 3600 m1 = m / 60 m1 m / 60 m 60 s = x % 3600 s x % 3600 x 3600 s1 = s % 60 s1 s % 60 s 60 System.out.println(h + ":" + m1 + ":" + s1) System.out.println System.out System System.out h + ":" + m1 + ":" + s1 ":" m1 h + ":" + m1 + ":" + s1 h ":" m1 ":" s1 public static void main(String[] args){
    new Main().yatary();
    } main {
    new Main().yatary();
    } new Main().yatary() new Main().yatary new Main() String[] args args
import java.util.Scanner;
class Main{
    int x,h,m,m1,s,s1;  
    public void yatary() {
        Scanner sc = new Scanner(System.in);
        x =sc.nextInt();
        h =x / 3600; 
        m =x % 3600;
        m1 = m / 60;
        s = x % 3600;
        s1 = s % 60;
        System.out.println(h + ":" + m1 + ":" + s1);
    }
    public static void main(String[] args){
    new Main().yatary();
    }
}