import java.util.Scanner;

public class Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int S = scan.nextInt();
        int h = S / 3600;
        int d = (S % 3600) / 60;
        int s = (S % 3600) % 60;
        System.out.println(h+":"+d+":"+s);
        scan.close();
    }
} import java.util.Scanner; Scanner java.util public class Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int S = scan.nextInt();
        int h = S / 3600;
        int d = (S % 3600) / 60;
        int s = (S % 3600) % 60;
        System.out.println(h+":"+d+":"+s);
        scan.close();
    }
} Main public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int S = scan.nextInt();
        int h = S / 3600;
        int d = (S % 3600) / 60;
        int s = (S % 3600) % 60;
        System.out.println(h+":"+d+":"+s);
        scan.close();
    } main {
        Scanner scan = new Scanner(System.in);
        int S = scan.nextInt();
        int h = S / 3600;
        int d = (S % 3600) / 60;
        int s = (S % 3600) % 60;
        System.out.println(h+":"+d+":"+s);
        scan.close();
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int S = scan.nextInt(); S scan.nextInt() scan.nextInt scan int h = S / 3600; h S / 3600 S 3600 int d = (S % 3600) / 60; d (S % 3600) / 60 (S % 3600) S 3600 60 int s = (S % 3600) % 60; s (S % 3600) % 60 (S % 3600) S 3600 60 System.out.println(h+":"+d+":"+s) System.out.println System.out System System.out h+":"+d+":"+s ":" d h+":"+d+":"+s h ":" d ":" s scan.close() scan.close scan String[] args args public class Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int S = scan.nextInt();
        int h = S / 3600;
        int d = (S % 3600) / 60;
        int s = (S % 3600) % 60;
        System.out.println(h+":"+d+":"+s);
        scan.close();
    }
} public class Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int S = scan.nextInt();
        int h = S / 3600;
        int d = (S % 3600) / 60;
        int s = (S % 3600) % 60;
        System.out.println(h+":"+d+":"+s);
        scan.close();
    }
} Main
import java.util.Scanner;

public class Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int S = scan.nextInt();
        int h = S / 3600;
        int d = (S % 3600) / 60;
        int s = (S % 3600) % 60;
        System.out.println(h+":"+d+":"+s);
        scan.close();
    }
}
