#include using namespace std; int main(){ int a,t; int h=10, m=0; cin >> a; t=(a/100.0)*60; m+=t; h+=m/60; m%=60; h%=24; cout << h << ":" << m << endl; return 0; }