#include // #include using namespace std; // using bigint = boost::multiprecision::cpp_int; template using min_priority_queue = priority_queue,greater>; random_device seed_gen; mt19937 engine(seed_gen()); int64_t get_time_ns(){ struct::timespec t; clock_gettime(CLOCK_MONOTONIC, &t); return t.tv_sec * int64_t(1'000'000'000) + t.tv_nsec; } int main() { int a; cin >> a; int m = (a / 10 * 6 + 10 * 60) % (24 * 60); int h1 = m / 600; int h2 = m / 60 % 10; int m1 = m / 10 % 6; int m2 = m % 10; cout << h1 << h2 << ":" << m1 << m2 << endl; return 0; }