import java.util.Scanner;

class Main {
    public static void main(String[] args) {
    	//System.out.println("数字を入力してください");
    	Scanner sc = new Scanner(System.in);
    	int i = Integer.parseInt(sc.next());

    	int h=i/3600;
    	int a=i%3600;
    	int m=a/60;
    	int s=a%60;
    	System.out.println(h+":"+m+":"+s);
    }
}
 import java.util.Scanner; Scanner java.util class Main {
    public static void main(String[] args) {
    	//System.out.println("数字を入力してください");
    	Scanner sc = new Scanner(System.in);
    	int i = Integer.parseInt(sc.next());

    	int h=i/3600;
    	int a=i%3600;
    	int m=a/60;
    	int s=a%60;
    	System.out.println(h+":"+m+":"+s);
    }
} Main public static void main(String[] args) {
    	//System.out.println("数字を入力してください");
    	Scanner sc = new Scanner(System.in);
    	int i = Integer.parseInt(sc.next());

    	int h=i/3600;
    	int a=i%3600;
    	int m=a/60;
    	int s=a%60;
    	System.out.println(h+":"+m+":"+s);
    } main {
    	//System.out.println("数字を入力してください");
    	Scanner sc = new Scanner(System.in);
    	int i = Integer.parseInt(sc.next());

    	int h=i/3600;
    	int a=i%3600;
    	int m=a/60;
    	int s=a%60;
    	System.out.println(h+":"+m+":"+s);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int i = Integer.parseInt(sc.next()); i Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int h=i/3600; h i/3600 i 3600 int a=i%3600; a i%3600 i 3600 int m=a/60; m a/60 a 60 int s=a%60; s a%60 a 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 String[] args args
import java.util.Scanner;

class Main {
    public static void main(String[] args) {
    	//System.out.println("数字を入力してください");
    	Scanner sc = new Scanner(System.in);
    	int i = Integer.parseInt(sc.next());

    	int h=i/3600;
    	int a=i%3600;
    	int m=a/60;
    	int s=a%60;
    	System.out.println(h+":"+m+":"+s);
    }
}

