import java.io.IOException;
import java.util.Scanner;

//????????????????????????hms???????????????
public class Main{

	public static void main(String[] args) throws IOException{

		Scanner in = new Scanner(System.in);
		int x=in.nextInt();
		hms(x);
		in.close();

	}

	public static void hms(int num){
		int h=num/3600;
		int m=(num%3600)/60;
		int s=(num%3600)%60;
		System.out.println(h +":"+m+":"+s+"");

	}

} 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{

		Scanner in = new Scanner(System.in);
		int x=in.nextInt();
		hms(x);
		in.close();

	}

	public static void hms(int num){
		int h=num/3600;
		int m=(num%3600)/60;
		int s=(num%3600)%60;
		System.out.println(h +":"+m+":"+s+"");

	}

} Main public static void main(String[] args) throws IOException{

		Scanner in = new Scanner(System.in);
		int x=in.nextInt();
		hms(x);
		in.close();

	} main {

		Scanner in = new Scanner(System.in);
		int x=in.nextInt();
		hms(x);
		in.close();

	} Scanner in = new Scanner(System.in); in new Scanner(System.in) int x=in.nextInt(); x in.nextInt() in.nextInt in hms(x) hms x in.close() in.close in String[] args args public static void hms(int num){
		int h=num/3600;
		int m=(num%3600)/60;
		int s=(num%3600)%60;
		System.out.println(h +":"+m+":"+s+"");

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

	} int h=num/3600; h num/3600 num 3600 int m=(num%3600)/60; m (num%3600)/60 (num%3600) num 3600 60 int s=(num%3600)%60; s (num%3600)%60 (num%3600) num 3600 60 System.out.println(h +":"+m+":"+s+"") System.out.println System.out System System.out h +":"+m+":"+s+"" s ":" m h +":"+m+":"+s+"" h ":" m ":" s "" int num num public class Main{

	public static void main(String[] args) throws IOException{

		Scanner in = new Scanner(System.in);
		int x=in.nextInt();
		hms(x);
		in.close();

	}

	public static void hms(int num){
		int h=num/3600;
		int m=(num%3600)/60;
		int s=(num%3600)%60;
		System.out.println(h +":"+m+":"+s+"");

	}

} public class Main{

	public static void main(String[] args) throws IOException{

		Scanner in = new Scanner(System.in);
		int x=in.nextInt();
		hms(x);
		in.close();

	}

	public static void hms(int num){
		int h=num/3600;
		int m=(num%3600)/60;
		int s=(num%3600)%60;
		System.out.println(h +":"+m+":"+s+"");

	}

} Main
import java.io.IOException;
import java.util.Scanner;

//????????????????????????hms???????????????
public class Main{

	public static void main(String[] args) throws IOException{

		Scanner in = new Scanner(System.in);
		int x=in.nextInt();
		hms(x);
		in.close();

	}

	public static void hms(int num){
		int h=num/3600;
		int m=(num%3600)/60;
		int s=(num%3600)%60;
		System.out.println(h +":"+m+":"+s+"");

	}

}