import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

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

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String test = br.readLine();
		
		int second = Integer.parseInt(test);
		int minite = 0;
		int hour = 0;
		
		minite = second / 60;
		second %= 60;
		hour = minite / 60;
		minite %= 60;
		
		System.out.println(hour+ ":" + minite + ":" + second);
		
		
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

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

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String test = br.readLine();
		
		int second = Integer.parseInt(test);
		int minite = 0;
		int hour = 0;
		
		minite = second / 60;
		second %= 60;
		hour = minite / 60;
		minite %= 60;
		
		System.out.println(hour+ ":" + minite + ":" + second);
		
		
	}
} Main public static void main(String[] args) throws IOException{

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String test = br.readLine();
		
		int second = Integer.parseInt(test);
		int minite = 0;
		int hour = 0;
		
		minite = second / 60;
		second %= 60;
		hour = minite / 60;
		minite %= 60;
		
		System.out.println(hour+ ":" + minite + ":" + second);
		
		
	} main {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String test = br.readLine();
		
		int second = Integer.parseInt(test);
		int minite = 0;
		int hour = 0;
		
		minite = second / 60;
		second %= 60;
		hour = minite / 60;
		minite %= 60;
		
		System.out.println(hour+ ":" + minite + ":" + second);
		
		
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String test = br.readLine(); test br.readLine() br.readLine br int second = Integer.parseInt(test); second Integer.parseInt(test) Integer.parseInt Integer test int minite = 0; minite 0 int hour = 0; hour 0 minite = second / 60 minite second / 60 second 60 second %= 60 second 60 hour = minite / 60 hour minite / 60 minite 60 minite %= 60 minite 60 System.out.println(hour+ ":" + minite + ":" + second) System.out.println System.out System System.out hour+ ":" + minite + ":" + second ":" minite hour+ ":" + minite + ":" + second hour ":" minite ":" second String[] args args public class Main {

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

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String test = br.readLine();
		
		int second = Integer.parseInt(test);
		int minite = 0;
		int hour = 0;
		
		minite = second / 60;
		second %= 60;
		hour = minite / 60;
		minite %= 60;
		
		System.out.println(hour+ ":" + minite + ":" + second);
		
		
	}
} public class Main {

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

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String test = br.readLine();
		
		int second = Integer.parseInt(test);
		int minite = 0;
		int hour = 0;
		
		minite = second / 60;
		second %= 60;
		hour = minite / 60;
		minite %= 60;
		
		System.out.println(hour+ ":" + minite + ":" + second);
		
		
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

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

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String test = br.readLine();
		
		int second = Integer.parseInt(test);
		int minite = 0;
		int hour = 0;
		
		minite = second / 60;
		second %= 60;
		hour = minite / 60;
		minite %= 60;
		
		System.out.println(hour+ ":" + minite + ":" + second);
		
		
	}
}