#include #define rep(i, n) for (int i = 0; i < int(n); i++) #define rrep(i, n) for (int i = int(n) - 1; i >= 0; i--) #define reps(i, n) for (int i = 1; i <= int(n); i++) #define rreps(i, n) for (int i = int(n); i >= 1; i--) #define repi(i, a, b) for (int i = (a); i < int(b); i++) #define all(a) (a).begin(), (a).end() #define bit(b) (1ull << (b)) #define uniq(v) (v).erase(unique(all(v)), (v).end()) using namespace std; using i32 = int; using i64 = long long; using f64 = double; using vi32 = vector; using vi64 = vector; using vf64 = vector; using vstr = vector; template void amax(T &x, S y) { if (x < y) x = y; } template void amin(T &x, S y) { if (y < x) x = y; } int main() { ios::sync_with_stdio(false); cin.tie(0); cout << fixed << setprecision(16); int a; cin >> a; int h = a * 10 / 100; int m = h % 10 * 6; h /= 10; h += 10; h %= 24; printf("%02d:%02d\n", h, m); return 0; }