#include <stdio.h> int main() { int a,b,c; scanf("%d:%d %d",&a,&b,&c); printf("%02d:%02d\n",((a+c/60)+(b+c%60)/60)%24,(b+c%60)%60); return 0; }