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 hour = 0;
		int minute = 0;

		int second = Integer.parseInt(br.readLine());
		if((second > 0) && (86400 > second)){

			if(second >= 60){
				minute = second / 60;
				second %= 60;
			}
			if(minute >= 60){
				hour = minute / 60;
				minute = minute % 60;
			}
		}

		System.out.println(hour + ":" + minute + ":" + 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));

		int hour = 0;
		int minute = 0;

		int second = Integer.parseInt(br.readLine());
		if((second > 0) && (86400 > second)){

			if(second >= 60){
				minute = second / 60;
				second %= 60;
			}
			if(minute >= 60){
				hour = minute / 60;
				minute = minute % 60;
			}
		}

		System.out.println(hour + ":" + minute + ":" + second);
	}
} Main public static void main(String[] args)throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int hour = 0;
		int minute = 0;

		int second = Integer.parseInt(br.readLine());
		if((second > 0) && (86400 > second)){

			if(second >= 60){
				minute = second / 60;
				second %= 60;
			}
			if(minute >= 60){
				hour = minute / 60;
				minute = minute % 60;
			}
		}

		System.out.println(hour + ":" + minute + ":" + second);
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int hour = 0;
		int minute = 0;

		int second = Integer.parseInt(br.readLine());
		if((second > 0) && (86400 > second)){

			if(second >= 60){
				minute = second / 60;
				second %= 60;
			}
			if(minute >= 60){
				hour = minute / 60;
				minute = minute % 60;
			}
		}

		System.out.println(hour + ":" + minute + ":" + second);
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int hour = 0; hour 0 int minute = 0; minute 0 int second = Integer.parseInt(br.readLine()); second Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br if((second > 0) && (86400 > second)){

			if(second >= 60){
				minute = second / 60;
				second %= 60;
			}
			if(minute >= 60){
				hour = minute / 60;
				minute = minute % 60;
			}
		} (second > 0) && (86400 > second) (second > 0) second 0 (86400 > second) 86400 second {

			if(second >= 60){
				minute = second / 60;
				second %= 60;
			}
			if(minute >= 60){
				hour = minute / 60;
				minute = minute % 60;
			}
		} if(second >= 60){
				minute = second / 60;
				second %= 60;
			} second >= 60 second 60 {
				minute = second / 60;
				second %= 60;
			} minute = second / 60 minute second / 60 second 60 second %= 60 second 60 if(minute >= 60){
				hour = minute / 60;
				minute = minute % 60;
			} minute >= 60 minute 60 {
				hour = minute / 60;
				minute = minute % 60;
			} hour = minute / 60 hour minute / 60 minute 60 minute = minute % 60 minute minute % 60 minute 60 System.out.println(hour + ":" + minute + ":" + second) System.out.println System.out System System.out hour + ":" + minute + ":" + second ":" minute hour + ":" + minute + ":" + second hour ":" minute ":" second String[] args args public class Main{
	public static void main(String[] args)throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int hour = 0;
		int minute = 0;

		int second = Integer.parseInt(br.readLine());
		if((second > 0) && (86400 > second)){

			if(second >= 60){
				minute = second / 60;
				second %= 60;
			}
			if(minute >= 60){
				hour = minute / 60;
				minute = minute % 60;
			}
		}

		System.out.println(hour + ":" + minute + ":" + second);
	}
} public class Main{
	public static void main(String[] args)throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int hour = 0;
		int minute = 0;

		int second = Integer.parseInt(br.readLine());
		if((second > 0) && (86400 > second)){

			if(second >= 60){
				minute = second / 60;
				second %= 60;
			}
			if(minute >= 60){
				hour = minute / 60;
				minute = minute % 60;
			}
		}

		System.out.println(hour + ":" + minute + ":" + 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));

		int hour = 0;
		int minute = 0;

		int second = Integer.parseInt(br.readLine());
		if((second > 0) && (86400 > second)){

			if(second >= 60){
				minute = second / 60;
				second %= 60;
			}
			if(minute >= 60){
				hour = minute / 60;
				minute = minute % 60;
			}
		}

		System.out.println(hour + ":" + minute + ":" + second);
	}
}