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

class Main {
    public static void main(String args[]) throws IOException {
    InputStreamReader br = new InputStreamReader(System.in);	
    BufferedReader is = new BufferedReader(br);
    String str = is.readLine();
    int x = Integer.parseInt(str);
    int h,m,s;
    h=x/3600;
    x=x%3600;
    m=x/60;
    s=x%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 br = new InputStreamReader(System.in);	
    BufferedReader is = new BufferedReader(br);
    String str = is.readLine();
    int x = Integer.parseInt(str);
    int h,m,s;
    h=x/3600;
    x=x%3600;
    m=x/60;
    s=x%60;
    System.out.println(h + ":" +  m + ":" + s);
    }
} Main public static void main(String args[]) throws IOException {
    InputStreamReader br = new InputStreamReader(System.in);	
    BufferedReader is = new BufferedReader(br);
    String str = is.readLine();
    int x = Integer.parseInt(str);
    int h,m,s;
    h=x/3600;
    x=x%3600;
    m=x/60;
    s=x%60;
    System.out.println(h + ":" +  m + ":" + s);
    } main {
    InputStreamReader br = new InputStreamReader(System.in);	
    BufferedReader is = new BufferedReader(br);
    String str = is.readLine();
    int x = Integer.parseInt(str);
    int h,m,s;
    h=x/3600;
    x=x%3600;
    m=x/60;
    s=x%60;
    System.out.println(h + ":" +  m + ":" + s);
    } InputStreamReader br = new InputStreamReader(System.in); br new InputStreamReader(System.in) BufferedReader is = new BufferedReader(br); is new BufferedReader(br) String str = is.readLine(); str is.readLine() is.readLine is int x = Integer.parseInt(str); x Integer.parseInt(str) Integer.parseInt Integer str int h h m m s; s h=x/3600 h x/3600 x 3600 x=x%3600 x x%3600 x 3600 m=x/60 m x/60 x 60 s=x%60 s x%60 x 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 br = new InputStreamReader(System.in);	
    BufferedReader is = new BufferedReader(br);
    String str = is.readLine();
    int x = Integer.parseInt(str);
    int h,m,s;
    h=x/3600;
    x=x%3600;
    m=x/60;
    s=x%60;
    System.out.println(h + ":" +  m + ":" + s);
    }
}