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));
		int a ,b,c;
		String str = br.readLine();
		String strARY[] = str.split(" ");
		a= Integer.parseInt(strARY[0]);
		b = (a-a/3600*3600);
		c = (b-b/60*60);
		System.out.println(a/3600+":"+b/60+":"+ c);
	}		
} 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));
		int a ,b,c;
		String str = br.readLine();
		String strARY[] = str.split(" ");
		a= Integer.parseInt(strARY[0]);
		b = (a-a/3600*3600);
		c = (b-b/60*60);
		System.out.println(a/3600+":"+b/60+":"+ c);
	}		
} Main public static void main(String[] args) throws IOException{
		BufferedReader br =new BufferedReader(new InputStreamReader(System.in));
		int a ,b,c;
		String str = br.readLine();
		String strARY[] = str.split(" ");
		a= Integer.parseInt(strARY[0]);
		b = (a-a/3600*3600);
		c = (b-b/60*60);
		System.out.println(a/3600+":"+b/60+":"+ c);
	} main {
		BufferedReader br =new BufferedReader(new InputStreamReader(System.in));
		int a ,b,c;
		String str = br.readLine();
		String strARY[] = str.split(" ");
		a= Integer.parseInt(strARY[0]);
		b = (a-a/3600*3600);
		c = (b-b/60*60);
		System.out.println(a/3600+":"+b/60+":"+ c);
	} BufferedReader br =new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int a a b b c; c String str = br.readLine(); str br.readLine() br.readLine br String strARY[] = str.split(" "); strARY str.split(" ") str.split str " " a= Integer.parseInt(strARY[0]) a Integer.parseInt(strARY[0]) Integer.parseInt Integer strARY[0] strARY 0 b = (a-a/3600*3600) b (a-a/3600*3600) a a/3600*3600 a/3600 a 3600 3600 c = (b-b/60*60) c (b-b/60*60) b b/60*60 b/60 b 60 60 System.out.println(a/3600+":"+b/60+":"+ c) System.out.println System.out System System.out a/3600+":"+b/60+":"+ c ":" b/60 a/3600+":"+b/60+":"+ c a/3600 a 3600 ":" b/60 b 60 ":" c String[] args args public class Main {
	public static void main(String[] args) throws IOException{
		BufferedReader br =new BufferedReader(new InputStreamReader(System.in));
		int a ,b,c;
		String str = br.readLine();
		String strARY[] = str.split(" ");
		a= Integer.parseInt(strARY[0]);
		b = (a-a/3600*3600);
		c = (b-b/60*60);
		System.out.println(a/3600+":"+b/60+":"+ c);
	}		
} public class Main {
	public static void main(String[] args) throws IOException{
		BufferedReader br =new BufferedReader(new InputStreamReader(System.in));
		int a ,b,c;
		String str = br.readLine();
		String strARY[] = str.split(" ");
		a= Integer.parseInt(strARY[0]);
		b = (a-a/3600*3600);
		c = (b-b/60*60);
		System.out.println(a/3600+":"+b/60+":"+ c);
	}		
} 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));
		int a ,b,c;
		String str = br.readLine();
		String strARY[] = str.split(" ");
		a= Integer.parseInt(strARY[0]);
		b = (a-a/3600*3600);
		c = (b-b/60*60);
		System.out.println(a/3600+":"+b/60+":"+ c);
	}		
}