include
using namespace std;
void whatTime(int secs, int &h, int &m, int &s)
{
// 請在這里補充代碼,設計並實現函數whatTime,使main函數中的函數調用正確
/********** Begin ******/
h = secs/3600;
m = (secs - 3600h)/60;
s = (secs - 3600h) - m60;
/********** End **********/
}
int main()
{
int secs; // secs秒表上的秒數
int h, m, s; // 當前時間:h-小時,m-分,s-秒
cin >> secs; // 輸入秒表上的秒數
whatTime(secs,h,m,s); // 計算當前時間
cout << h << ":" << m << ":" << s << endl; // 輸出當前時間
return 0;
}