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




public class Main {

	public static void main (String[] args) throws IOException{
		Scanner S = new Scanner(System.in);
		String Str = S.nextLine();
		int SI = Integer.parseInt(Str);
		int seconds = SI%60;
		int hour = SI/3600;
		int minute = SI / 60 - hour * 60;
		System.out.println(hour + ":" + minute + ":" + seconds );
		
	}	
} 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 S = new Scanner(System.in);
		String Str = S.nextLine();
		int SI = Integer.parseInt(Str);
		int seconds = SI%60;
		int hour = SI/3600;
		int minute = SI / 60 - hour * 60;
		System.out.println(hour + ":" + minute + ":" + seconds );
		
	}	
} Main public static void main (String[] args) throws IOException{
		Scanner S = new Scanner(System.in);
		String Str = S.nextLine();
		int SI = Integer.parseInt(Str);
		int seconds = SI%60;
		int hour = SI/3600;
		int minute = SI / 60 - hour * 60;
		System.out.println(hour + ":" + minute + ":" + seconds );
		
	} main {
		Scanner S = new Scanner(System.in);
		String Str = S.nextLine();
		int SI = Integer.parseInt(Str);
		int seconds = SI%60;
		int hour = SI/3600;
		int minute = SI / 60 - hour * 60;
		System.out.println(hour + ":" + minute + ":" + seconds );
		
	} Scanner S = new Scanner(System.in); S new Scanner(System.in) String Str = S.nextLine(); Str S.nextLine() S.nextLine S int SI = Integer.parseInt(Str); SI Integer.parseInt(Str) Integer.parseInt Integer Str int seconds = SI%60; seconds SI%60 SI 60 int hour = SI/3600; hour SI/3600 SI 3600 int minute = SI / 60 - hour * 60; minute SI / 60 - hour * 60 SI / 60 SI 60 hour * 60 hour 60 System.out.println(hour + ":" + minute + ":" + seconds ) System.out.println System.out System System.out hour + ":" + minute + ":" + seconds ":" minute hour + ":" + minute + ":" + seconds hour ":" minute ":" seconds String[] args args public class Main {

	public static void main (String[] args) throws IOException{
		Scanner S = new Scanner(System.in);
		String Str = S.nextLine();
		int SI = Integer.parseInt(Str);
		int seconds = SI%60;
		int hour = SI/3600;
		int minute = SI / 60 - hour * 60;
		System.out.println(hour + ":" + minute + ":" + seconds );
		
	}	
} public class Main {

	public static void main (String[] args) throws IOException{
		Scanner S = new Scanner(System.in);
		String Str = S.nextLine();
		int SI = Integer.parseInt(Str);
		int seconds = SI%60;
		int hour = SI/3600;
		int minute = SI / 60 - hour * 60;
		System.out.println(hour + ":" + minute + ":" + seconds );
		
	}	
} Main
import java.io.IOException;
import java.util.Scanner;




public class Main {

	public static void main (String[] args) throws IOException{
		Scanner S = new Scanner(System.in);
		String Str = S.nextLine();
		int SI = Integer.parseInt(Str);
		int seconds = SI%60;
		int hour = SI/3600;
		int minute = SI / 60 - hour * 60;
		System.out.println(hour + ":" + minute + ":" + seconds );
		
	}	
}