#include #include #include #include #define REP(i, a, b) for (int i = int(a); i < int(b); i++) #define dump(s) cerr << __LINE__ << "\t:" << #s << " = " << (s) << endl using namespace std; int main () { int a; cin >> a; int tm = (600 + a / 10 * 6) % 1440; cout << setw(2) << setfill('0') << tm / 60 << ':' << setw(2) << setfill('0') << tm% 60 << endl; return 0; }