#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #define REP(i,n) for(int i=0;i( \ ( std::ostringstream() << std::dec << x ) ).str() #define ALL(s) (s).begin(), (s).end() using namespace std; typedef long long unsigned int llu; typedef long long ll; int main (){ string T; while (cin >> T){ string hh = T.substr(0,2); string mm = T.substr(3,2); int h; int m; sscanf(hh.c_str(),"%d",&h); sscanf(mm.c_str(),"%d",&m); h += (m+5) / 60; m += 5; h %= 24; m %= 60; printf("%02d:%02d\n",h,m); } return 0; }