#include typedef long long ll; using namespace std; int INF = 1e9; int MOD = 1e9+7; main(){ int h,m; scanf("%d:%d",&h,&m); m += 5; printf("%02d:%02d\n",(h+m/60)%24,m%60); }