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