import java.util.Scanner;
public class Main{
    int S;
    int h=0;
    int m=0;
    int s=0;
    
    public void solve(){
        Scanner sc = new Scanner(System.in);
        S=sc.nextInt();
        h=S/3600;
        m=(S-h*3600)/60;
        s=S-(h*3600)-(m*60);
        System.out.println(h+":"+m+":"+s);
    }
    
    public static void main(String[] args){
        Main obj = new Main();
        obj.solve();
    }
} import java.util.Scanner; Scanner java.util public class Main{
    int S;
    int h=0;
    int m=0;
    int s=0;
    
    public void solve(){
        Scanner sc = new Scanner(System.in);
        S=sc.nextInt();
        h=S/3600;
        m=(S-h*3600)/60;
        s=S-(h*3600)-(m*60);
        System.out.println(h+":"+m+":"+s);
    }
    
    public static void main(String[] args){
        Main obj = new Main();
        obj.solve();
    }
} Main int S; S int h=0; h 0 int m=0; m 0 int s=0; s 0 public void solve(){
        Scanner sc = new Scanner(System.in);
        S=sc.nextInt();
        h=S/3600;
        m=(S-h*3600)/60;
        s=S-(h*3600)-(m*60);
        System.out.println(h+":"+m+":"+s);
    } solve {
        Scanner sc = new Scanner(System.in);
        S=sc.nextInt();
        h=S/3600;
        m=(S-h*3600)/60;
        s=S-(h*3600)-(m*60);
        System.out.println(h+":"+m+":"+s);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) S=sc.nextInt() S sc.nextInt() sc.nextInt sc h=S/3600 h S/3600 S 3600 m=(S-h*3600)/60 m (S-h*3600)/60 (S-h*3600) S h*3600 h 3600 60 s=S-(h*3600)-(m*60) s S-(h*3600)-(m*60) S-(h*3600)-(m*60) S (h*3600) h 3600 (m*60) m 60 System.out.println(h+":"+m+":"+s) System.out.println System.out System System.out h+":"+m+":"+s ":" m h+":"+m+":"+s h ":" m ":" s public static void main(String[] args){
        Main obj = new Main();
        obj.solve();
    } main {
        Main obj = new Main();
        obj.solve();
    } Main obj = new Main(); obj new Main() obj.solve() obj.solve obj String[] args args public class Main{
    int S;
    int h=0;
    int m=0;
    int s=0;
    
    public void solve(){
        Scanner sc = new Scanner(System.in);
        S=sc.nextInt();
        h=S/3600;
        m=(S-h*3600)/60;
        s=S-(h*3600)-(m*60);
        System.out.println(h+":"+m+":"+s);
    }
    
    public static void main(String[] args){
        Main obj = new Main();
        obj.solve();
    }
} public class Main{
    int S;
    int h=0;
    int m=0;
    int s=0;
    
    public void solve(){
        Scanner sc = new Scanner(System.in);
        S=sc.nextInt();
        h=S/3600;
        m=(S-h*3600)/60;
        s=S-(h*3600)-(m*60);
        System.out.println(h+":"+m+":"+s);
    }
    
    public static void main(String[] args){
        Main obj = new Main();
        obj.solve();
    }
} Main
import java.util.Scanner;
public class Main{
    int S;
    int h=0;
    int m=0;
    int s=0;
    
    public void solve(){
        Scanner sc = new Scanner(System.in);
        S=sc.nextInt();
        h=S/3600;
        m=(S-h*3600)/60;
        s=S-(h*3600)-(m*60);
        System.out.println(h+":"+m+":"+s);
    }
    
    public static void main(String[] args){
        Main obj = new Main();
        obj.solve();
    }
}