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

class Main{

		public static void main(String[] args)throws IOException{
			InputStreamReader isr = new InputStreamReader(System.in);
			BufferedReader br = new BufferedReader(isr);
			String buf = br.readLine();
			int S = Integer.parseInt(buf);
			int h = S / 3600;
			int m = S % 3600 / 60;
			int s = S % 60;
			System.out.println(h + ":" + m + ":" + s);
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io class Main{

		public static void main(String[] args)throws IOException{
			InputStreamReader isr = new InputStreamReader(System.in);
			BufferedReader br = new BufferedReader(isr);
			String buf = br.readLine();
			int S = Integer.parseInt(buf);
			int h = S / 3600;
			int m = S % 3600 / 60;
			int s = S % 60;
			System.out.println(h + ":" + m + ":" + s);
	}
} Main public static void main(String[] args)throws IOException{
			InputStreamReader isr = new InputStreamReader(System.in);
			BufferedReader br = new BufferedReader(isr);
			String buf = br.readLine();
			int S = Integer.parseInt(buf);
			int h = S / 3600;
			int m = S % 3600 / 60;
			int s = S % 60;
			System.out.println(h + ":" + m + ":" + s);
	} main {
			InputStreamReader isr = new InputStreamReader(System.in);
			BufferedReader br = new BufferedReader(isr);
			String buf = br.readLine();
			int S = Integer.parseInt(buf);
			int h = S / 3600;
			int m = S % 3600 / 60;
			int s = S % 60;
			System.out.println(h + ":" + m + ":" + s);
	} InputStreamReader isr = new InputStreamReader(System.in); isr new InputStreamReader(System.in) BufferedReader br = new BufferedReader(isr); br new BufferedReader(isr) String buf = br.readLine(); buf br.readLine() br.readLine br int S = Integer.parseInt(buf); S Integer.parseInt(buf) Integer.parseInt Integer buf int h = S / 3600; h S / 3600 S 3600 int m = S % 3600 / 60; m S % 3600 / 60 S % 3600 S 3600 60 int s = S % 60; s S % 60 S 60 System.out.println(h + ":" + m + ":" + s) System.out.println System.out System System.out h + ":" + m + ":" + s ":" m h + ":" + m + ":" + s h ":" m ":" s String[] args args
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

class Main{

		public static void main(String[] args)throws IOException{
			InputStreamReader isr = new InputStreamReader(System.in);
			BufferedReader br = new BufferedReader(isr);
			String buf = br.readLine();
			int S = Integer.parseInt(buf);
			int h = S / 3600;
			int m = S % 3600 / 60;
			int s = S % 60;
			System.out.println(h + ":" + m + ":" + s);
	}
}