#include using namespace std; int main() { int h,m; scanf("%d:%d",&h,&m); h=(h+(m+5)/60)%24; m=(m+5)%60; printf("%02d:%02d\n",h,m); return 0; }