#include using namespace std; #define FOR(i,l,r) for(int i = (int) (l);i < (int) (r);i++) template bool chmax(T& a,const T& b){ return a < b ? (a = b,true) : false; } template bool chmin(T& a,const T& b){ return b < a ? (a = b,true) : false; } typedef long long ll; int H,M; int main() { scanf("%02d:%02d",&H,&M); M += 5; if(M >= 60){ H++; M %= 60; } if(H >= 24){ H %= 24; } printf("%02d:%02d\n",H,M); return 0; }