import java.util.Scanner;
public class Main {
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		for(int h=0;h < 241;h++){
			if(n >= 3600){
				n = n-3600;
			}else{
				System.out.print(h+":");
				break;
			}
		}
		for(int m=0;m < 60;m++){
			if(n >=60){
				n = n-60;
			}else{
				System.out.println(m+":"+n);
				break;
			}
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		for(int h=0;h < 241;h++){
			if(n >= 3600){
				n = n-3600;
			}else{
				System.out.print(h+":");
				break;
			}
		}
		for(int m=0;m < 60;m++){
			if(n >=60){
				n = n-60;
			}else{
				System.out.println(m+":"+n);
				break;
			}
		}
	}
} Main public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		for(int h=0;h < 241;h++){
			if(n >= 3600){
				n = n-3600;
			}else{
				System.out.print(h+":");
				break;
			}
		}
		for(int m=0;m < 60;m++){
			if(n >=60){
				n = n-60;
			}else{
				System.out.println(m+":"+n);
				break;
			}
		}
	} main {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		for(int h=0;h < 241;h++){
			if(n >= 3600){
				n = n-3600;
			}else{
				System.out.print(h+":");
				break;
			}
		}
		for(int m=0;m < 60;m++){
			if(n >=60){
				n = n-60;
			}else{
				System.out.println(m+":"+n);
				break;
			}
		}
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan for(int h=0;h < 241;h++){
			if(n >= 3600){
				n = n-3600;
			}else{
				System.out.print(h+":");
				break;
			}
		} int h=0; int h=0; h 0 h < 241 h 241 h++ h++ h {
			if(n >= 3600){
				n = n-3600;
			}else{
				System.out.print(h+":");
				break;
			}
		} {
			if(n >= 3600){
				n = n-3600;
			}else{
				System.out.print(h+":");
				break;
			}
		} if(n >= 3600){
				n = n-3600;
			}else{
				System.out.print(h+":");
				break;
			} n >= 3600 n 3600 {
				n = n-3600;
			} n = n-3600 n n-3600 n 3600 {
				System.out.print(h+":");
				break;
			} System.out.print(h+":") System.out.print System.out System System.out h+":" h ":" break; for(int m=0;m < 60;m++){
			if(n >=60){
				n = n-60;
			}else{
				System.out.println(m+":"+n);
				break;
			}
		} int m=0; int m=0; m 0 m < 60 m 60 m++ m++ m {
			if(n >=60){
				n = n-60;
			}else{
				System.out.println(m+":"+n);
				break;
			}
		} {
			if(n >=60){
				n = n-60;
			}else{
				System.out.println(m+":"+n);
				break;
			}
		} if(n >=60){
				n = n-60;
			}else{
				System.out.println(m+":"+n);
				break;
			} n >=60 n 60 {
				n = n-60;
			} n = n-60 n n-60 n 60 {
				System.out.println(m+":"+n);
				break;
			} System.out.println(m+":"+n) System.out.println System.out System System.out m+":"+n m+":"+n m ":" n break; String[] args args public class Main {
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		for(int h=0;h < 241;h++){
			if(n >= 3600){
				n = n-3600;
			}else{
				System.out.print(h+":");
				break;
			}
		}
		for(int m=0;m < 60;m++){
			if(n >=60){
				n = n-60;
			}else{
				System.out.println(m+":"+n);
				break;
			}
		}
	}
} public class Main {
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		for(int h=0;h < 241;h++){
			if(n >= 3600){
				n = n-3600;
			}else{
				System.out.print(h+":");
				break;
			}
		}
		for(int m=0;m < 60;m++){
			if(n >=60){
				n = n-60;
			}else{
				System.out.println(m+":"+n);
				break;
			}
		}
	}
} Main
import java.util.Scanner;
public class Main {
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		for(int h=0;h < 241;h++){
			if(n >= 3600){
				n = n-3600;
			}else{
				System.out.print(h+":");
				break;
			}
		}
		for(int m=0;m < 60;m++){
			if(n >=60){
				n = n-60;
			}else{
				System.out.println(m+":"+n);
				break;
			}
		}
	}
}