#include using namespace std; using ll = long long; using llu = long long unsigned; vector dx = { 0, 0, -1, 1}; vector dy = {-1, 1, 0, 0}; #define MOD 1000000007 int main() { string T; cin >> T; int hour, min; string sh, sm; sh = T[0]+T[1]; sm = T[3]+T[4]; hour = stoi(sh); min = stoi(sm); min += 5; if (min >= 60) { min%=60; hour++; } if (hour >= 24) { hour%=24; } printf("%02d:%02d\n", hour, min); return 0; }