import java.io.IOException;
import java.util.Scanner;
public class Main {

	public static void main(String[] args) throws IOException {
		// TODO ?????????????????????????????????????????????
       Scanner sc = new Scanner(System.in);
       int s = sc.nextInt();
       
       int h,m,b;
       h=s/3600;
       m=(s%3600)/60;
       b=((s%3600)-m*60);
       System.out.println(h+":"+m+":"+b);
       
       
	}

} import java.io.IOException; IOException java.io import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) throws IOException {
		// TODO ?????????????????????????????????????????????
       Scanner sc = new Scanner(System.in);
       int s = sc.nextInt();
       
       int h,m,b;
       h=s/3600;
       m=(s%3600)/60;
       b=((s%3600)-m*60);
       System.out.println(h+":"+m+":"+b);
       
       
	}

} Main public static void main(String[] args) throws IOException {
		// TODO ?????????????????????????????????????????????
       Scanner sc = new Scanner(System.in);
       int s = sc.nextInt();
       
       int h,m,b;
       h=s/3600;
       m=(s%3600)/60;
       b=((s%3600)-m*60);
       System.out.println(h+":"+m+":"+b);
       
       
	} main {
		// TODO ?????????????????????????????????????????????
       Scanner sc = new Scanner(System.in);
       int s = sc.nextInt();
       
       int h,m,b;
       h=s/3600;
       m=(s%3600)/60;
       b=((s%3600)-m*60);
       System.out.println(h+":"+m+":"+b);
       
       
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int s = sc.nextInt(); s sc.nextInt() sc.nextInt sc int h h m m b; b h=s/3600 h s/3600 s 3600 m=(s%3600)/60 m (s%3600)/60 (s%3600) s 3600 60 b=((s%3600)-m*60) b ((s%3600)-m*60) (s%3600) s 3600 m*60 m 60 System.out.println(h+":"+m+":"+b) System.out.println System.out System System.out h+":"+m+":"+b ":" m h+":"+m+":"+b h ":" m ":" b String[] args args public class Main {

	public static void main(String[] args) throws IOException {
		// TODO ?????????????????????????????????????????????
       Scanner sc = new Scanner(System.in);
       int s = sc.nextInt();
       
       int h,m,b;
       h=s/3600;
       m=(s%3600)/60;
       b=((s%3600)-m*60);
       System.out.println(h+":"+m+":"+b);
       
       
	}

} public class Main {

	public static void main(String[] args) throws IOException {
		// TODO ?????????????????????????????????????????????
       Scanner sc = new Scanner(System.in);
       int s = sc.nextInt();
       
       int h,m,b;
       h=s/3600;
       m=(s%3600)/60;
       b=((s%3600)-m*60);
       System.out.println(h+":"+m+":"+b);
       
       
	}

} Main
import java.io.IOException;
import java.util.Scanner;
public class Main {

	public static void main(String[] args) throws IOException {
		// TODO ?????????????????????????????????????????????
       Scanner sc = new Scanner(System.in);
       int s = sc.nextInt();
       
       int h,m,b;
       h=s/3600;
       m=(s%3600)/60;
       b=((s%3600)-m*60);
       System.out.println(h+":"+m+":"+b);
       
       
	}

}