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

public class Main {
    public static void main(String[] args) {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line;
		try {
			line = br.readLine();
		} catch (IOException e) {
			System.err.println("The input is missing. " + e.getMessage());
			return;
		}

		int s;
        try {
        	s = Integer.parseInt(line);
        } catch(Throwable e) {
			System.err.println("The input is in an illegal form. " + line);
			return;
        }

        StringBuilder b = new StringBuilder();
        b.append(s / 3600).append(':');

        s %= 3600;
        b.append(s / 60).append(':');

        s %= 60;
        b.append(s);

        System.out.println(b.toString());
    }
} 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) {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line;
		try {
			line = br.readLine();
		} catch (IOException e) {
			System.err.println("The input is missing. " + e.getMessage());
			return;
		}

		int s;
        try {
        	s = Integer.parseInt(line);
        } catch(Throwable e) {
			System.err.println("The input is in an illegal form. " + line);
			return;
        }

        StringBuilder b = new StringBuilder();
        b.append(s / 3600).append(':');

        s %= 3600;
        b.append(s / 60).append(':');

        s %= 60;
        b.append(s);

        System.out.println(b.toString());
    }
} Main public static void main(String[] args) {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line;
		try {
			line = br.readLine();
		} catch (IOException e) {
			System.err.println("The input is missing. " + e.getMessage());
			return;
		}

		int s;
        try {
        	s = Integer.parseInt(line);
        } catch(Throwable e) {
			System.err.println("The input is in an illegal form. " + line);
			return;
        }

        StringBuilder b = new StringBuilder();
        b.append(s / 3600).append(':');

        s %= 3600;
        b.append(s / 60).append(':');

        s %= 60;
        b.append(s);

        System.out.println(b.toString());
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line;
		try {
			line = br.readLine();
		} catch (IOException e) {
			System.err.println("The input is missing. " + e.getMessage());
			return;
		}

		int s;
        try {
        	s = Integer.parseInt(line);
        } catch(Throwable e) {
			System.err.println("The input is in an illegal form. " + line);
			return;
        }

        StringBuilder b = new StringBuilder();
        b.append(s / 3600).append(':');

        s %= 3600;
        b.append(s / 60).append(':');

        s %= 60;
        b.append(s);

        System.out.println(b.toString());
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String line; line try {
			line = br.readLine();
		} catch (IOException e) {
			System.err.println("The input is missing. " + e.getMessage());
			return;
		} catch (IOException e) {
			System.err.println("The input is missing. " + e.getMessage());
			return;
		} IOException e {
			System.err.println("The input is missing. " + e.getMessage());
			return;
		} System.err.println("The input is missing. " + e.getMessage()) System.err.println System.err System System.err "The input is missing. " + e.getMessage() "The input is missing. " e.getMessage() e.getMessage e return; {
			line = br.readLine();
		} line = br.readLine() line br.readLine() br.readLine br int s; s try {
        	s = Integer.parseInt(line);
        } catch(Throwable e) {
			System.err.println("The input is in an illegal form. " + line);
			return;
        } catch(Throwable e) {
			System.err.println("The input is in an illegal form. " + line);
			return;
        } Throwable e {
			System.err.println("The input is in an illegal form. " + line);
			return;
        } System.err.println("The input is in an illegal form. " + line) System.err.println System.err System System.err "The input is in an illegal form. " + line "The input is in an illegal form. " line return; {
        	s = Integer.parseInt(line);
        } s = Integer.parseInt(line) s Integer.parseInt(line) Integer.parseInt Integer line StringBuilder b = new StringBuilder(); b new StringBuilder() b.append(s / 3600).append(':') b.append(s / 3600).append b.append(s / 3600) b.append b s / 3600 s 3600 ':' s %= 3600 s 3600 b.append(s / 60).append(':') b.append(s / 60).append b.append(s / 60) b.append b s / 60 s 60 ':' s %= 60 s 60 b.append(s) b.append b s System.out.println(b.toString()) System.out.println System.out System System.out b.toString() b.toString b String[] args args public class Main {
    public static void main(String[] args) {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line;
		try {
			line = br.readLine();
		} catch (IOException e) {
			System.err.println("The input is missing. " + e.getMessage());
			return;
		}

		int s;
        try {
        	s = Integer.parseInt(line);
        } catch(Throwable e) {
			System.err.println("The input is in an illegal form. " + line);
			return;
        }

        StringBuilder b = new StringBuilder();
        b.append(s / 3600).append(':');

        s %= 3600;
        b.append(s / 60).append(':');

        s %= 60;
        b.append(s);

        System.out.println(b.toString());
    }
} public class Main {
    public static void main(String[] args) {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line;
		try {
			line = br.readLine();
		} catch (IOException e) {
			System.err.println("The input is missing. " + e.getMessage());
			return;
		}

		int s;
        try {
        	s = Integer.parseInt(line);
        } catch(Throwable e) {
			System.err.println("The input is in an illegal form. " + line);
			return;
        }

        StringBuilder b = new StringBuilder();
        b.append(s / 3600).append(':');

        s %= 3600;
        b.append(s / 60).append(':');

        s %= 60;
        b.append(s);

        System.out.println(b.toString());
    }
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
    public static void main(String[] args) {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line;
		try {
			line = br.readLine();
		} catch (IOException e) {
			System.err.println("The input is missing. " + e.getMessage());
			return;
		}

		int s;
        try {
        	s = Integer.parseInt(line);
        } catch(Throwable e) {
			System.err.println("The input is in an illegal form. " + line);
			return;
        }

        StringBuilder b = new StringBuilder();
        b.append(s / 3600).append(':');

        s %= 3600;
        b.append(s / 60).append(':');

        s %= 60;
        b.append(s);

        System.out.println(b.toString());
    }
}