#include <iostream> using namespace std; int main() { int n,h,m,s; cin >> n; h = n/3600; m = (n%3600)/60; s = n % 3600 % 60; if (h >= 10){ cout << h << ":"; } else{ cout << "0" << h << ":"; } if (m >= 10){ cout << m << ":"; } else{ cout << "0" << m << ":"; } if (s >= 10){ cout << s; } else{ cout << "0" << s; } return 0; }