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