#include using namespace std; int main(){ double s,t; cin >> s; t=s; s=floor(s/100+10); cout << s << ":"; int n=(t/10)*6; n=n%60; if(n<10) cout << 0; cout << n << endl; }